MEMORY commands in link scripts
Nick Clifton
nickc@redhat.com
Fri Nov 19 09:31:00 GMT 2004
Hi Jon,
> 2004-11-08 Jon Beniston <jon@beniston.com>
>
> * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
> * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
> * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
> which return the length and origin of a memory.
> * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
Approved and applied.
Note - I felt that this patch deserved a mention in the ld/NEWS file
since it implements a new feature and also a testsuite case to check to
make sure that it works. So I have added the attached patch to do these
things.
Cheers
Nick
ld/ChangeLog
* NEWS: Mention support for ORIGIN and LENGTH operators.
ld/testsuite/ChangeLog
2004-11-19 Nick Clifton <nickc@redhat.com>
* ld-scripts/script.exp: Add test of memory linker script.
Reorganize code to remove unnecessary indentation.
Fix target tests to avoid using --image-base with *-nto targets.
* ld-scripts/memory.t: New linker script to test the MEMORY
section and the ORIGIN and LENGTH operators.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ld.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20041119/e971ad1a/attachment.ksh>
More information about the Binutils
mailing list