This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Powerpc disassembly and gdb breakpoints
- From: Andreas Schwab <schwab at suse dot de>
- To: binutils at sourceware dot org
- Date: Tue, 01 Jul 2008 17:50:32 +0200
- Subject: Re: Powerpc disassembly and gdb breakpoints
- References: <20080514022043.GA11328@bubble.grove.modra.org>
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."