bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: question about ordering .rela sections on Itanium


From: Andreas Schwab
Subject: Re: question about ordering .rela sections on Itanium
Date: Thu, 06 Jun 2002 14:10:42 +0200
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (ia64-suse-linux)

address@hidden (Alan Modra) writes:

|> On Wed, Jun 05, 2002 at 04:16:00PM -0700, Lowney, Geoff wrote:
|> > Depending on where I place the statement in the the
|> > linker script, the relocations may be placed such that they are
|> > ignored by the program loader.  Is this expected behavior?
|> 
|> No, that's weird, unless there's something about the ia66 ELF format
|> that requires one set of relocs be applied before others can be done
|> correctly.  I don't know enough about ia64 to know whether this is
|> the case, but it's true on other targets.  eg. powerpc64 ld.so needs
|> to relocate the .opd section before applying .plt relocs as the .plt
|> relocs copy .opd section data.

PLT relocation usually are handled specially (to support lazy binding).
Thus they must go into their own section in the output file, and the
dynamic linker expects to find only PLT relocations there.  If you put any
other relocation section after it, it will be marked as if belonging to
the PLT relocations, and thinks will break.  The ia64 is not special in
this regard.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]