[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/25022] Make /DISCARD/ discard SHF_LINK_ORDER sections

From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/25022] Make /DISCARD/ discard SHF_LINK_ORDER sections
Date: Fri, 07 Feb 2020 03:47:34 +0000


--- Comment #1 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>:


commit 9b538ba71fc7dbab65371e3e4e5f7e093ff25023
Author: H.J. Lu <address@hidden>
Date:   Thu Feb 6 19:42:52 2020 -0800

    ELF: Discard a section if any of its linked-to sections has been discarded

    Add ldelf_before_place_orphans to call before lang_place_orphans to
    discard a section if any of its linked-to sections has been discarded.

        PR ld/25022
        * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
        * emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
        * emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
        * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
        * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Likewise.
        * emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
        * emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
        * emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
        * emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
        * emultempl/vanilla.em (ld_${EMULATION_NAME}_emulation): Likewise.
        * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Use
        * ldelf.c (ldelf_before_place_orphans): New.
        * ldelf.h (ldelf_before_place_orphans): Likewise.
        * ldemul.c (ldemul_before_place_orphans): Likewise.
        (before_place_orphans_default): Likewise.
        * ldemul.h (ldemul_before_place_orphans): Likewise.
        (before_place_orphans_default): Likewise.
        (ld_emulation_xfer_struct): Add before_place_orphans.
        * ldlang.c (lang_process): Call ldemul_before_place_orphans
        before lang_place_orphans.
        * testsuite/ld-elf/pr25022.d: New file.
        * testsuite/ld-elf/pr25022.s: Likewise.
        * testsuite/ld-elf/pr25022.t: 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]