diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-05-17 07:57:15 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-05-17 07:57:26 -0700 |
commit | b7c871edcd83ccdc5fcd8148a7f433efd6b52255 (patch) | |
tree | d1f43eadeeac5387cca51b23a1b8e9da8aa0fbb6 /bfd/ChangeLog | |
parent | 0d5c69990c1992289f7b286600a43de4d5d44062 (diff) | |
download | gdb-b7c871edcd83ccdc5fcd8148a7f433efd6b52255.zip gdb-b7c871edcd83ccdc5fcd8148a7f433efd6b52255.tar.gz gdb-b7c871edcd83ccdc5fcd8148a7f433efd6b52255.tar.bz2 |
Mark debug sections referenced by kept debug sections
If a debug section is referenced by a kept debug section, it should
also be kept.
Some targets, like mips, keep input files when there are some special
sections, like .gnu.attributes, even if input file is unused otherwise.
In this case, all debug sections are kept. The new test will fail on
such targets. We can either fix those targets or XFAIL the test.
bfd/
PR ld/20882
* elflink.c (elf_gc_mark_debug_section): New function.
(_bfd_elf_gc_mark_extra_sections): Mark any debug sections
referenced by kept debug sections.
ld/
PR ld/20882
* testsuite/ld-gc/gc.exp: Run pr20882.
* testsuite/ld-gc/pr20882.d: New file.
* testsuite/ld-gc/pr20882a.s: Likewise.
* testsuite/ld-gc/pr20882b.s: Likewise.
* testsuite/ld-gc/pr20882c.s: Likewise.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 532ba0c..31b3982 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2017-05-17 H.J. Lu <hongjiu.lu@intel.com> + + PR ld/20882 + * elflink.c (elf_gc_mark_debug_section): New function. + (_bfd_elf_gc_mark_extra_sections): Mark any debug sections + referenced by kept debug sections. + 2017-05-16 Alan Modra <amodra@gmail.com> * elf-m10300.c: Rename occurrences of non_ir_ref. |