aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-target.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-07-29 02:46:04 +0000
committerAlan Modra <amodra@gmail.com>2005-07-29 02:46:04 +0000
commit8a69675106de19439ba277ce987a9535e5a6fce4 (patch)
tree9befa7bd097c8015aef9be13d009c5844b8a31a8 /bfd/elfxx-target.h
parent8655b342bf234ed946924bccd87288163022996b (diff)
downloadgdb-8a69675106de19439ba277ce987a9535e5a6fce4.zip
gdb-8a69675106de19439ba277ce987a9535e5a6fce4.tar.gz
gdb-8a69675106de19439ba277ce987a9535e5a6fce4.tar.bz2
* elf-bfd.h (struct elf_backend_data): Add action_discarded.
(enum action_discarded): Move from.. * elflink.c (enum action_discarded): ..here. (_bfd_elf_default_action_discarded): Rename from elf_action_discarded. Remove target specific section checks. (elf_link_input_bfd): Adjust. * elfxx-target.h (elf_backend_action_discarded): Define. (elfNN_bed): Init new field. * bfd-in.h (_bfd_elf_default_action_discarded): Declare. * bfd-in2.h: Regenerate. * elf-hppa.h (elf_hppa_action_discarded): New function. * elf32-hppa.c (elf_backend_action_discarded): Define. * elf64-hppa.c (elf_backend_action_discarded): Define. * elf32-ppc.c (ppc_elf_action_discarded): New function. (elf_backend_action_discarded): Define.
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 0268e62..624b31c 100644
--- a/bfd/elfxx-target.h
+++ b/bfd/elfxx-target.h
@@ -445,6 +445,9 @@
#ifndef elf_backend_ignore_discarded_relocs
#define elf_backend_ignore_discarded_relocs NULL
#endif
+#ifndef elf_backend_action_discarded
+#define elf_backend_action_discarded _bfd_elf_default_action_discarded
+#endif
#ifndef elf_backend_eh_frame_address_size
#define elf_backend_eh_frame_address_size _bfd_elf_eh_frame_address_size
#endif
@@ -596,6 +599,7 @@ static const struct elf_backend_data elfNN_bed =
elf_backend_reloc_type_class,
elf_backend_discard_info,
elf_backend_ignore_discarded_relocs,
+ elf_backend_action_discarded,
elf_backend_eh_frame_address_size,
elf_backend_can_make_relative_eh_frame,
elf_backend_can_make_lsda_relative_eh_frame,