This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Correct the type of _PROCEDURE_LINKAGE_TABLE_


Ian Lance Taylor <ian@wasabisystems.com> writes:

> I suppose that when I think of _PROCEDURE_LINKAGE_TABLE_, I think of
> it as naming a data object: the procedure linkage table, in fact.
> It's true that there is often code at that address.  But it's not
> really a function in any sense.

Both alpha and sparc{32,64} (the only backends that set want_plt_sym) have
pure code in the .plt section.  It can be looked at as a table of code
snippets, all of the same size.

>  Most of the entries in the PLT come with their own STT_FUNC symbols.

The .plt entries don't have symbols of their own.  They are only used to
internally resolve references to global functions.  The function symbols
always point to the real entry points.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]