GC: Also check the local debug definition section
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 14 Mar 2018 11:23:24 +0000 (04:23 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 14 Mar 2018 11:23:40 +0000 (04:23 -0700)
commit9e223787a474c672c5f1cfd4574857241ae4eafa
treedf0b15bd36ada60535ed0795da1df927a8189221
parentbf48520113c4265017769d374f6b1a7ce3fc8e41
GC: Also check the local debug definition section

Extend

commit b7c871edcd83ccdc5fcd8148a7f433efd6b52255
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed May 17 07:57:15 2017 -0700

    Mark debug sections referenced by kept debug sections

to handle the local debug definition section.

bfd/

PR ld/20882
* elflink.c (elf_gc_mark_debug_section): Also check the local
debug definition section.

ld/

PR ld/20882
* testsuite/ld-gc/pr20882.d: Also dump and check .debug_abbrev
section.
* testsuite/ld-gc/pr20882b.s: Add .debug_abbrev section.
bfd/ChangeLog
bfd/elflink.c
ld/ChangeLog
ld/testsuite/ld-gc/pr20882.d
ld/testsuite/ld-gc/pr20882b.s