This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PPC64 new ABI .opd symbols
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Alan Modra <amodra at bigpond dot net dot au>
- Cc: binutils at sources dot redhat dot com, Ulrich Drepper <drepper at redhat dot com>
- Date: Mon, 29 Aug 2005 17:18:40 +0200
- Subject: PPC64 new ABI .opd symbols
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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