PPC relocs in shared libraries
Daniel Jacobowitz
drow@mvista.com
Tue Oct 1 06:43:00 GMT 2002
On Tue, Oct 01, 2002 at 05:13:44PM +0930, Alan Modra wrote:
> On Fri, Sep 27, 2002 at 09:54:04AM -0700, Richard Henderson wrote:
> > On Fri, Sep 27, 2002 at 09:07:55AM -0400, Jakub Jelinek wrote:
> > > I still don't understand why GDB needs to care about reloc sections in
> > > ET_DYN/ET_EXEC.
> >
> > The relocation is the only way to associate the real address with the
> > debug info in the case of dynamic linker overrides.
>
> Hmm, OK. ld.so won't do the reloc for gdb though, will it? So gdb
> will need to be quite clever about symbol resolution. No reason not
> to emit the relocs though, except to reduce file size.
Which it isn't. If you have multiple functions with the same name GDB
is prone to getting helplessly confused. Anyone who's had to debug,
say, elfcode.h in a multi-target binutils is well aware of this :)
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
More information about the Binutils
mailing list