This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Why no expressions in MEMORY command?


>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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]