aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-target.h
diff options
context:
space:
mode:
authorCatherine Moore <clm@redhat.com>2001-06-20 20:34:10 +0000
committerCatherine Moore <clm@redhat.com>2001-06-20 20:34:10 +0000
commit9317eaccac71a58fca33b448bfac3da8e2efe409 (patch)
treebb3bdd96d415dc736cc511e260ce2f48a56e5d07 /bfd/elfxx-target.h
parent161d71a6393454688d8c2bd2244e75ce9058b422 (diff)
downloadfsf-binutils-gdb-9317eaccac71a58fca33b448bfac3da8e2efe409.zip
fsf-binutils-gdb-9317eaccac71a58fca33b448bfac3da8e2efe409.tar.gz
fsf-binutils-gdb-9317eaccac71a58fca33b448bfac3da8e2efe409.tar.bz2
* elf-bfd.h (struct elf_backend_data):
elf_backend_emit_relocs: New field: Function for emitting relocs. elf_backend_count_relocs: New field: Function for determining the number of relocs to be emitted. * elfxx-target.h: Provide default (NULL) values for elf_backend_emit_relocs and elf_backend_count_relocs. * elflink.h (elf_link_size_reloc_section): Make the hash table big enough to hold the relocs counted by either reloc_count or o->reloc_count. (elf_bfd_final_link) emit_relocs: New boolean, set if relocs should be emitted, either because of a command line option stored in the info structure or because the target provides a special reloc emitting function. If the target provides a reloc counting function use it, unless performing a relocatable link or emitting all relocs. Also set the SEC_RELOC flag on any output section which will contain relocs. (elf_link_input_bfd): emit_relocs: New boolean, set if relocs should be emitted, either because of a command line option stored in the info structure or because the target provides a special reloc emitting function. If the target provides a reloc emitting function, use it, unless performing a relocatable link or emitting all relocs.
Diffstat (limited to 'bfd/elfxx-target.h')
-rw-r--r--bfd/elfxx-target.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h
index 82ea204..8258a6a 100644
--- a/bfd/elfxx-target.h
+++ b/bfd/elfxx-target.h
@@ -323,6 +323,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#ifndef elf_backend_hide_symbol
#define elf_backend_hide_symbol _bfd_elf_link_hash_hide_symbol
#endif
+#ifndef elf_backend_emit_relocs
+#define elf_backend_emit_relocs NULL
+#endif
+#ifndef elf_backend_count_relocs
+#define elf_backend_count_relocs NULL
+#endif
/* Previously, backends could only use SHT_REL or SHT_RELA relocation
sections, but not both. They defined USE_REL to indicate SHT_REL
@@ -404,6 +410,8 @@ static CONST struct elf_backend_data elfNN_bed =
elf_backend_output_arch_syms,
elf_backend_copy_indirect_symbol,
elf_backend_hide_symbol,
+ elf_backend_emit_relocs,
+ elf_backend_count_relocs,
elf_backend_ecoff_debug_swap,
ELF_MACHINE_ALT1,
ELF_MACHINE_ALT2,