This is the mail archive of the
mailing list for the GDB project.
Re: --gc-section leftovers workaround.
On Wed, Oct 28, 2009 at 1:55 PM, Pedro Alves <firstname.lastname@example.org> wrote:
> Does gold also not zero out FDE->address_range?
> I don't mind at all. ?Do you want to propose the wording / a patch?
Something like this, perhaps?
/* Check for FDEs with zero initial_location.
Such FDEs could come about when linker discards a section (either
a COMDAT section when the linker selects a different section
from the same group, or just a regular section discarded due
to --gc-sections), but keeps the corresponding .debug_info.
The linker sets the relevant FDE.initial_location to zero, but
doesn't zero the FDE.address_range because there's no relocation
there. It's (offset, length), not (start, end).
... rest as before ...