[Top][All Lists]

[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: Thu, 18 May 2017 07:16:37 +0000


--- Comment #9 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Alan Modra <address@hidden>:


commit 087ea22225435ab5800e6c29671acab40dc6ca82
Author: Alan Modra <address@hidden>
Date:   Thu May 18 14:28:17 2017 +0930

    pr20882 testcase

    -gdwarf-sections doesn't work on targets that lack support to emit
    address size relative relocs.  The testcase as it was avoided
    -gdwarf-sections doing anything by providing a non-empty .debug_line.
    It's better to not use -gdwarf-sections.  Also, the testcase failed
    to match the output for 16-bit address targets like avr.

        PR ld/20882
        * testsuite/ld-gc/pr20882.d: Don't pass -gdwarf-sections to gas.
        Allow for 16-bit address targets and match expected data fully.
        * testsuite/ld-gc/pr20882a.s: Delete .debug_line section.
        * 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]