Relocs against unalloced sections in shared libraries

Daniel Jacobowitz drow@mvista.com
Fri Jan 10 03:30:00 GMT 2003


On Fri, Jan 10, 2003 at 01:50:51PM +1030, Alan Modra wrote:
> On Thu, Jan 09, 2003 at 08:06:05PM -0500, Daniel Jacobowitz wrote:
> > > > No other target emits such relocations.  Currently, the ppc linker
> > 
> > Richard vehemently maintains that they should.  He's specifically
> > vetoed this change in the past.
> 
> Hmm, but is rth corrent?  It seems to me that the only reason debug
> info would need dynamic relocs is if it refers to external syms.  But
> by its nature, debug info is describing local entities.  In fact,
> allowing ELF shared lib symbol overriding to affect debug info might
> result in confusion.

Well, I'm inclned to agree; and when GDB resolves them it takes care to
use only the local symbol table.  But you get to discuss it with him :)

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Binutils mailing list