This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Why no expressions in MEMORY command?
- From: Peter Barada <peter at the-baradas dot com>
- To: manningc2 at actrix dot gen dot nz
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 13 Apr 2005 19:30:17 -0400 (EDT)
- Subject: Re: Why no expressions in MEMORY command?
- References: <20050412034139.74FBE460C@blood.actrix.co.nz>
>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