bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/22677] ld -r --gc-section does not KEEP .init_array/.fini_array


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/22677] ld -r --gc-section does not KEEP .init_array/.fini_array
Date: Thu, 11 Jan 2018 17:46:18 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=22677

--- Comment #5 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=8b6f4cd34fdde524ea035c65f7d48aaa3fb449b5

commit 8b6f4cd34fdde524ea035c65f7d48aaa3fb449b5
Author: H.J. Lu <address@hidden>
Date:   Thu Jan 11 09:42:12 2018 -0800

    ld: Keep PREINIT_ARRAY/INIT_ARRAY/FINI_ARRAY sections for -r --gc-sections

    We must keep all PREINIT_ARRAY, INIT_ARRAY as well as FINI_ARRAY sections
    for ld -r --gc-sections.

    bfd/

        PR ld/22677
        * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
        INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-sections.

    ld/

        PR ld/22677
        * scripttempl/elf.sc (PREINIT_ARRAY): New.
        Don't add .preinit_array for ld -r.
        * testsuite/ld-elf/pr22677.d: New file.
        * testsuite/ld-elf/pr22677.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]