Garbage collecting debug sections
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
Tue, 24 Mar 2015 13:48:04 +0000 (19:18 +0530)
committerAlan Modra <amodra@gmail.com>
Wed, 25 Mar 2015 10:12:00 +0000 (20:42 +1030)
commitd422d1c433073ba412287334a7ec3aa95e03c5e9
treed2eef2aaca76a0e8f91d1ae04bae511d4380da08
parentb422eb499be2858969fb7723b4e4e08cab20fcdc
Garbage collecting debug sections

I noticed that _bfd_elf_gc_mark_extra_sections attempts to unmark
related debug sections when it finds an unmarked code section.
When it finds .text.foo is unmarked, for example, it removes
.debug_line.text.foo as well (using the section name as a suffix
match check.

However, it bails out after finding one such section.

bfd/
* elflink.c (_bfd_elf_gc_mark_extra_sections): Don't break on
first matching debug section.
ld/testsuite/
* ld-gc/all-debug-sections.d: New file.
* ld-gc/all-debug-sections.s: Likewise.
* ld-gc/gc.exp: Execute new testcase.
bfd/ChangeLog
bfd/elflink.c
ld/testsuite/ChangeLog
ld/testsuite/ld-gc/all-debug-sections.d [new file with mode: 0644]
ld/testsuite/ld-gc/all-debug-sections.s [new file with mode: 0644]
ld/testsuite/ld-gc/gc.exp
This page took 0.026957 seconds and 4 git commands to generate.