Powerpc disassembly and gdb breakpoints
Alan Modra
amodra@bigpond.net.au
Wed Jul 2 00:13:00 GMT 2008
On Tue, Jul 01, 2008 at 05:50:32PM +0200, Andreas Schwab wrote:
> 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.
Sigh. Yes indeed. I forgot that -msecure-plt can require more than
one glink stub per plt entry when -fPIC and -shared/-pie.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list