[Patch, LD]Fix GDB crash caused by discarding the grouped debug sections
Terry Guo
terry.guo@arm.com
Sun Jan 4 03:08:00 GMT 2015
> -----Original Message-----
> From: Alan Modra [mailto:amodra@gmail.com]
> Sent: Monday, December 08, 2014 8:12 PM
> To: Terry Guo
> Cc: binutils@sourceware.org
> Subject: Re: [Patch, LD]Fix GDB crash caused by discarding the grouped
> debug sections
>
> On Mon, Dec 08, 2014 at 02:49:44PM +0800, Terry Guo wrote:
> > Thanks for comments. Then is it a proper solution if I update the
> > patch to keep other sections in same group?
>
> Yes, I think it would be OK to keep a group containing just debug sections
or
> the other special sections we currently mark.
>
Patch is updated per your suggestion and tested with Binutils regression. No
regression. Is this one OK?
BR,
Terry
2015-01-04 Terry Guo <terry.guo@arm.com>
* bfd/elf-bfd.h (_bfd_elf_gc_mark_debug_special_section_group):
Declare new function.
* bfd/elflink.c (_bfd_elf_gc_mark_debug_special_section_group):
New function.
(_bfd_elf_gc_mark_extra_sections): Handle section group.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ld-keeps-all-debug-section-v3.txt
URL: <https://sourceware.org/pipermail/binutils/attachments/20150104/863b15e8/attachment.txt>
More information about the Binutils
mailing list