aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-bfd.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2011-06-14 02:45:12 +0000
committerAlan Modra <amodra@gmail.com>2011-06-14 02:45:12 +0000
commit7f6ab9f8b9a5164d34c5d0b85ad4bfb8d51d89fb (patch)
treea6bbfb3426ae13110d87c3a0b45b79498d0682ca /bfd/elf-bfd.h
parentc6431bc3708cda380b0bdc35d11827882e803f2d (diff)
downloadbinutils-7f6ab9f8b9a5164d34c5d0b85ad4bfb8d51d89fb.zip
binutils-7f6ab9f8b9a5164d34c5d0b85ad4bfb8d51d89fb.tar.gz
binutils-7f6ab9f8b9a5164d34c5d0b85ad4bfb8d51d89fb.tar.bz2
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.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r--bfd/elf-bfd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 5552229..f2d73ac 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -2171,6 +2171,9 @@ extern bfd_boolean _bfd_elf_gc_mark_fdes
extern bfd_boolean _bfd_elf_gc_mark
(struct bfd_link_info *, asection *, elf_gc_mark_hook_fn);
+extern bfd_boolean _bfd_elf_gc_mark_extra_sections
+ (struct bfd_link_info *, elf_gc_mark_hook_fn);
+
extern bfd_boolean bfd_elf_gc_common_finalize_got_offsets
(bfd *, struct bfd_link_info *);