This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: --gc-section leftovers workaround.


On Wed, Oct 28, 2009 at 1:55 PM, Pedro Alves <pedro@codesourcery.com> wrote:

> Does gold also not zero out FDE->address_range?

Correct (AFAICT).

> 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 ...

Thanks,
-- 
Paul Pluzhnikov


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