mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-18 23:03:29 +08:00
9e223787a4
Extend
commit b7c871edcd
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.
13 lines
292 B
Makefile
13 lines
292 B
Makefile
#name: --gc-sections with relocations in debug section
|
|
#source: pr20882a.s
|
|
#source: pr20882b.s
|
|
#source: pr20882c.s
|
|
#ld: --gc-sections -e main
|
|
#readelf: -x .debug_info -x .debug_abbrev
|
|
|
|
Hex dump of section '\.debug_info':
|
|
0x0+ .*
|
|
|
|
Hex dump of section '\.debug_abbrev':
|
|
0x0+ 61626364 +abcd
|