This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: when is ld appending .number to end of section names?
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Sam Ravnborg <sam at ravnborg dot org>
- Cc: binutils at sourceware dot org
- Date: Sat, 19 Jan 2008 11:20:26 +1030
- Subject: Re: when is ld appending .number to end of section names?
- References: <20080118214228.GD20904@uranus.ravnborg.org>
On Fri, Jan 18, 2008 at 10:42:28PM +0100, Sam Ravnborg wrote:
> The expected section name was: ".init.text".
> But the actual section name was ".init.text.1"
Quoting from ld/emultemp/elf32.em
/* Choose a unique name for the section. This will be needed if the
same section name appears in the input file with different
loadable or allocatable characteristics. */
Most likely someone forgot to flag .init.text with "ax" in one of the
input object files. Another possiblility is that ld --unique was
used.
--
Alan Modra
Australia Development Lab, IBM