I\'m currently in the process of writing an intermediate-memory bootloader for an ATMega.
I\'d like to place a section of commonly used functions and data in a speci
Consider using -R <file> as linker option (gcc -Wl,-R -Wl,<file>).
-R <file>
gcc -Wl,-R -Wl,<file>
This will generate references to (global) symbols in <file> just as if they were linked normally, but not include the referenced code.
<file>