This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
output section placement at end of memory
- From: Josef Angermeier <sijoange at cip dot informatik dot uni-erlangen dot de>
- To: binutils at sources dot redhat dot com
- Date: Wed, 27 Jul 2005 08:20:42 +0200
- Subject: output section placement at end of memory
Hello
I wonder how to tell ld, to place a section at the end of memory. An
example: 0xe0000 to 0xfffff is the available memory, input sections
.text and .data shall be placed from the beginning, and the section
".special" shall be placed at the end of memory.
here a diagram:
--- 0xe0000 ----
.text
.data
... PADDING ...
.special
--- 0xfffff ---
Can this be done with an ld linker script ? - i've read the manual and
think it can't be done, because the size of "*.special" isn't known
until it's corresponding output section is created, so you can't
calculate the number of padding bytes.
Im probably not the only one facing this problem, so how did others
solve that ?
thanks in advance
josef