bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/11133] gc-sections deletes sections with __start/__stop re


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/11133] gc-sections deletes sections with __start/__stop reference
Date: Thu, 22 Oct 2015 19:25:10 +0000

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

--- Comment #14 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=bba037e0aef1f3b17cc6cf6fd041ed6110cc375a

commit bba037e0aef1f3b17cc6cf6fd041ed6110cc375a
Author: H.J. Lu <address@hidden>
Date:   Thu Oct 22 12:17:43 2015 -0700

    Always keep sections marked with SEC_KEEP

    SEC_KEEP check in elf_gc_sweep was missing in commit:

    commit bde6f3eb6dff94cea1d471e15c6154d55d49820f
    Author: H.J. Lu <address@hidden>
    Date:   Fri Jan 8 01:43:23 2010 +0000

        Set SEC_KEEP on section XXX for undefined __start_XXX/__stop_XXX

        bfd/

        2010-01-07  H.J. Lu  <address@hidden>

          PR ld/11133
          * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
          undefined __start_XXX/__stop_XXX in all input files and set
          SEC_KEEP.

    This patch adds SEC_KEEP check to elf_gc_sweep.

    bfd/

        PR ld/19161
        * elflink.c (elf_gc_sweep): Always keep sections marked with
        SEC_KEEP.

    ld/testsuite/

        PR ld/19161
        * ld-gc/gc.exp: Run pr19161 test.
        * ld-gc/pr19161-1.c: New file.
        * ld-gc/pr19161-2.c: Likewise.
        * ld-gc/pr19161.d: 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]