Relocs against unalloced sections in shared libraries

Geoff Keating geoffk@geoffk.org
Fri Jan 10 00:39:00 GMT 2003


> From: Andreas Schwab <schwab@suse.de>
> Date: 10 Jan 2003 01:29:50 +0100

> Geoff Keating <geoffk@geoffk.org> writes:
> 
> > Isn't this necessary for proper handling of DWARF2 debug information?
> 
> The debugger will know which bytes to relocate by looking at the
> structure while reading the debug information from a shared library.

Hmmm.  Have you asked the GDB people about this?  I believe the
conclusion was that it kind-of does this now, and it kind-of works,
but in the long run it should be looking at the relocations.

> No other target emits such relocations.  Currently, the ppc linker
> will set DT_TEXTREL if there are any DWARF2 debugging sections in a
> shared library, which is just wrong.

Yes, the linker should ignore relocs against unallocated sections.
I thought it already did, we have had this entire discussion several
times before.

-- 
- Geoffrey Keating <geoffk@geoffk.org>



More information about the Binutils mailing list