Fix GDB crash caused by discarding grouped debug sections
authorTerry Guo <terry.guo@arm.com>
Mon, 12 Jan 2015 11:00:00 +0000 (21:30 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 12 Jan 2015 11:04:52 +0000 (21:34 +1030)
commit3c758495736df25d141a4ea13c7aba24f5bb9753
tree429a31718b33f2c53bf25dc73bebfb56805890e0
parentbba33ab1e0f7d2ebd8f8435f92ed12e2a3c558a4
Fix GDB crash caused by discarding grouped debug sections

Keep a group containing just debug sections or the other special
sections we currently mark against garbage collection.

* elflink.c (_bfd_elf_gc_mark_debug_special_section_group): New
function.
(_bfd_elf_gc_mark_extra_sections): Use it.
bfd/ChangeLog
bfd/elflink.c