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]

Re: Powerpc disassembly and gdb breakpoints


Alan Modra <amodra@bigpond.net.au> writes:

> See the fixme I added to explain why putting the synthetic symbol on
> the stub is difficult for ppc64.

Apparently there is a similar problem on ppc.  The number of PLT stubs
does not necessarily correlate with the number of .rela.plt relocations,
which may be related to the use of -Bsymbolic-functions.  For example,
in libQtNetwork.so.4.4.0 from libqt4-4.4.0-12.1.ppc in openSUSE 11.0
there are 1617 PLT stubs, but only 457 .rela.plt entries.  As a result
all the foo@plt symbols are misnamed.  When disassembling starting from
offset 0x96620 there is a call to _Z7qgetenvPKc@plt, when in fact this
function calls ioctl.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP 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]