Why no expressions in MEMORY command?

Peter Barada peter@the-baradas.com
Wed Apr 13 23:30:00 GMT 2005


>It seems you can only use hard-coded values in a MEMORY command. 
>
>Why can't you use scripts ike:
>
>
>EXT_RAM_START = ...
>EXT_RAM_SIZE = ......
>
>MEMORY
>{
>    ext_ram:  ORIGIN = EXT_RAM_START, LENGTH = EXT_RAM_SIZE
>}
>
>This can make things a lot easier...

You can always *generate* the linker script using other tools (sh,
cpp, perl, etc).

-- 
Peter Barada
peter@the-baradas.com



More information about the Binutils mailing list