This is the mail archive of the binutils@sources.redhat.com 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: PPC relocs in shared libraries


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]