bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/12851] --gc-sections doesn't work on note sections


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/12851] --gc-sections doesn't work on note sections
Date: Tue, 14 Jun 2011 02:46:17 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=12851

--- Comment #12 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> 2011-06-14 02:45:16 UTC ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    address@hidden    2011-06-14 02:45:12

Modified files:
    bfd            : ChangeLog elflink.c elf-bfd.h elfxx-target.h 
                     elf32-arm.c elf32-tic6x.c 

Log message:
    PR ld/12851
    * elflink.c (_bfd_elf_gc_mark_extra_sections): New function.
    (elf_gc_sweep): Don't treat debug and sections like .comment
    specially here.
    (bfd_elf_gc_sections): Treat note sections as gc roots only when
    not part of a group.  Always call gc_mark_extra_sections.
    * elf-bfd.h (_bfd_elf_gc_mark_extra_sections): Declare.
    * elfxx-target.h (elf_backend_gc_mark_extra_sections): Default to
    _bfd_elf_gc_mark_extra_sections.
    * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Call
    _bfd_elf_gc_mark_extra_sections.
    * elf32-tic6x.c (elf32_tic6x_gc_mark_extra_sections): Likewise.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.5384&r2=1.5385
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elflink.c.diff?cvsroot=src&r1=1.410&r2=1.411
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf-bfd.h.diff?cvsroot=src&r1=1.321&r2=1.322
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elfxx-target.h.diff?cvsroot=src&r1=1.125&r2=1.126
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-arm.c.diff?cvsroot=src&r1=1.270&r2=1.271
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-tic6x.c.diff?cvsroot=src&r1=1.25&r2=1.26

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]