ld segfault on incrementally linked object
amodra@one.net.au
amodra@one.net.au
Mon May 14 08:04:00 GMT 2001
On Sat, May 12, 2001 at 12:07:04PM -0700, Geoff Keating wrote:
> > From: amodra@one.net.au
> > Sooo, either the above quoted comment is wrong and we do need to
> > perform section relocations for incremental linking, or dwarf1.c
> > needs to relocate debug info. I don't particularly like the second
> > option for a number of reasons.
>
> The second option is the correct one. If there's a reloc, and we are
> using RELA relocs, the data at the reloc can be anything.
Yeah, but it's a pain. Here's a first pass that works for the common
case of reporting errors during a final link. It would be possible to
flesh out _bfd_dwarf_get_relocated_section_contents with various bits
of code stolen from elflink.h in case finfo is not available, but that
could get tricky. eg. If .debug is not going to be output, and thus
does not have an output_section, then how do you dig up the output bfd?
--
Alan Modra
More information about the Binutils
mailing list