[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/20882] GNU ld discards sections required by relocations in .debu
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections |
Date: |
Wed, 17 May 2017 15:04:38 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=20882
--- Comment #7 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by H.J. Lu <address@hidden>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b7c871edcd83ccdc5fcd8148a7f433efd6b52255
commit b7c871edcd83ccdc5fcd8148a7f433efd6b52255
Author: H.J. Lu <address@hidden>
Date: Wed May 17 07:57:15 2017 -0700
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections, rguenth at gcc dot gnu.org, 2017/05/16
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections, rguenth at gcc dot gnu.org, 2017/05/16
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections, hjl.tools at gmail dot com, 2017/05/16
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections, rguenther at suse dot de, 2017/05/16
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections, hjl.tools at gmail dot com, 2017/05/16
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections, hjl.tools at gmail dot com, 2017/05/16
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections, hjl.tools at gmail dot com, 2017/05/16
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections,
cvs-commit at gcc dot gnu.org <=
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections, hjl.tools at gmail dot com, 2017/05/17
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections, cvs-commit at gcc dot gnu.org, 2017/05/18
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections, rguenther at suse dot de, 2017/05/18
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections, nickc at redhat dot com, 2017/05/18
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections, amodra at gmail dot com, 2017/05/18
- [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections, hjl.tools at gmail dot com, 2017/05/18