aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-target.h
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2007-02-22 17:03:59 +0000
committerPaul Brook <paul@codesourcery.com>2007-02-22 17:03:59 +0000
commit6a5bb8757e503d29dd2b0cc656a8747bca71362e (patch)
tree739be2901b553d31859250350c69dc13a3454070 /bfd/elfxx-target.h
parent115d86cfaa1c3ecbf7ce54222a7622a2adb994f9 (diff)
downloadgdb-6a5bb8757e503d29dd2b0cc656a8747bca71362e.zip
gdb-6a5bb8757e503d29dd2b0cc656a8747bca71362e.tar.gz
gdb-6a5bb8757e503d29dd2b0cc656a8747bca71362e.tar.bz2
2007-02-22 Paul Brook <paul@codesourcery.com>
bfd/ * elflink.c (gc_mark_hook_fn): Remove. (_bfd_elf_gc_mark): Rename gc_mark_hook_fn to elf_gc_mark_hook_fn. (bfd_elf_gc_sections): Ditto. Call gc_mark_extra_sections. * elf-bfd.h (elf_gc_mark_hook_fn): Define. (elf_backend_data): Add gc_mark_extra_sections. * elfxx-target.h (elf_backend_gc_mark_extra_sections): Provide default definition. (elfNN_bed): Add elf_backend_gc_mark_extra_sections. * elf32-arm.c (elf32_arm_gc_mark_extra_sections): New function. (elf_backend_gc_mark_extra_sections): Define. ld/testsuite/ * ld-arm/arm-elf.exp (armelftests): Add gc-unwind.h. * ld-arm/gc-unwind.s: New file. * ld-arm/gc-unwind.d: New file.
Diffstat (limited to 'bfd/elfxx-target.h')
-rw-r--r--bfd/elfxx-target.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h
index c7be577..6615841 100644
--- a/bfd/elfxx-target.h
+++ b/bfd/elfxx-target.h
@@ -136,6 +136,9 @@
#ifndef elf_backend_gc_mark_hook
#define elf_backend_gc_mark_hook _bfd_elf_gc_mark_hook
#endif
+#ifndef elf_backend_gc_mark_extra_sections
+#define elf_backend_gc_mark_extra_sections NULL
+#endif
#ifndef elf_backend_gc_sweep_hook
#define elf_backend_gc_sweep_hook NULL
#endif
@@ -627,6 +630,7 @@ static struct elf_backend_data elfNN_bed =
elf_backend_modify_program_headers,
elf_backend_gc_mark_dynamic_ref,
elf_backend_gc_mark_hook,
+ elf_backend_gc_mark_extra_sections,
elf_backend_gc_sweep_hook,
elf_backend_post_process_headers,
elf_backend_print_symbol_all,