PPC relocs in shared libraries
Ian Lance Taylor
ian@airs.com
Tue Oct 1 08:22:00 GMT 2002
Alan Modra <amodra@bigpond.net.au> writes:
> My recollection is that there was some question over whether it is
> correct to emit debug section relocs for stabs, and that's why many
> binutils targets don't emit debug relocs. Ian?
As I recall, emitting relocs for sections which are not loaded can
confuse some dynamic linkers.
In principle the relocs are not needed, because the only dynamic
relocs which appear in stabs-in-ELF are for references to global
functions, and gdb looks those up by name in the symbol table anyhow.
It's true, as Dan points out, that gdb doesn't work very well when
multiple functions have the same name. But that's a general problem
which won't be solved by emitting dynamic relocs. The global
functions have to have different names anyhow. There shouldn't be
relocs in the stabs sections for the static functions. If there are,
that is worth some investigation.
Ian
More information about the Binutils
mailing list