Linker script
Erik Christiansen
erik@dd.nec.com.au
Thu Jun 26 09:23:00 GMT 2003
On Thu, Jun 26, 2003 at 10:18:18AM +0200, Daniel Lidsten wrote:
>
> .text 0x5000 : { _stext = .; *(.text*) *(.gnu.warning)
> *(.gnu.linkonce*) *(.init) } > ram _etext = .; PROVIDE
>
> The text segment specifies where the end is in the variable _etext.
>
> I need the above value to be place on a fixed location by something like
> this:
>
> .TextEnd 0x004DFFFC : { etext }
Daniel,
Linker-defined symbols can be used in your source code, so would it
perhaps be simpler to use _etext directly there?:
crc = (unsigned long*)&_etext;
Now you have a handle on the CRC, without intermediate steps.
Hope this helps.
Regards,
Erik
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list