OSDN Git Service

PR ld/12851
authoramodra <amodra>
Tue, 14 Jun 2011 02:45:08 +0000 (02:45 +0000)
committeramodra <amodra>
Tue, 14 Jun 2011 02:45:08 +0000 (02:45 +0000)
commit35e831bd193b06b47d06185787e8ad9b06d9cf3b
tree0a2e19d0643a3897cb63fd7aee72d5a129c19f25
parent26664ea5362d7f4ca00f051a3015c684a124f927
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.
bfd/ChangeLog
bfd/elf-bfd.h
bfd/elf32-arm.c
bfd/elf32-tic6x.c
bfd/elflink.c
bfd/elfxx-target.h