This is the mail archive of the binutils@sourceware.org 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]

PPC64 new ABI .opd symbols


Hi!

Is there any (reliable and cheap) way how to recognize new PPC64 ABI (==
dotless PPC64 ABI) .opd symbols from the dynamic linker/libc.so?
glibc can't use section header table for that (as it can be stripped
off and in any case isn't loaded at runtime).

The reason why I'm asking is that in the new ABI st_size on the .opd
symbols has different meaning (size of function's code) from what is
st_size used in other symbols.  This means dladdr and dladdr1 give
misleading results.

If there is none (I haven't found anything reliable so far, just looking
for non-SHN_UNDEF STT_FUNC symbols is not good enough, as in old ABI
STT_FUNC has been used for dot symbols), could we have
a new STO_PPC64_OPDSYM or something like that set on these symbols
to reliably detect them at least for all future linked libraries/binaries?

	Jakub


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