------- Additional Comments From nickc at redhat dot com 2008-11-17 16:34 ------- Hi Sebastian,
Why not use a pre-processor instead ? For example your board specific file could look like this: MEMORY { ROM_REGION (RX) : ORIGIN = 0x10000000, LENGTH = 256M RAM_REGION (AIW) : ORIGIN = 0x20000000, LENGTH = 256M } #define TEXT_REGION ROM_REGION #define DATA_REGION RAM_REGION #define BSS_REGION RAM_REGION #include "linkcmds.base" and where you would have "gcc -T <board-script> ..." as your command line you could use: cpp <board-script> <tmp-full-script> gcc -T <tmp-full-script> rm <tmp-full-script> The point being that there is no need to add any extra functionality to the linker, along with the possibility of introducing new bugs. Cheers Nick -- What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |WAITING http://sourceware.org/bugzilla/show_bug.cgi?id=7031 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils