aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-target.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-04-06 22:00:40 +0000
committerIan Lance Taylor <ian@airs.com>1994-04-06 22:00:40 +0000
commit6812b6077e4a09eab08458428f09c28ec58fc514 (patch)
tree16be3cd70ca281aca8b810d71fe5dbc125cbe9c9 /bfd/elf64-target.h
parent76336d506d079ddae02f26752357b5ea94582cb0 (diff)
downloadgdb-6812b6077e4a09eab08458428f09c28ec58fc514.zip
gdb-6812b6077e4a09eab08458428f09c28ec58fc514.tar.gz
gdb-6812b6077e4a09eab08458428f09c28ec58fc514.tar.bz2
* targets.c (bfd_target): Rearranged fields in target vector.
Removed _bfd_debug_info_start, _bfd_debug_info_end and _bfd_debug_info_accumulate, which were never used. (BFD_JUMP_TABLE_GENERIC, BFD_JUMP_TABLE_COPY): Defined. (BFD_JUMP_TABLE_CORE, BFD_JUMP_TABLE_ARCHIVE): Defined. (BFD_JUMP_TABLE_SYMBOLS, BFD_JUMP_TABLE_RELOCS): Defined. (BFD_JUMP_TABLE_WRITE, BFD_JUMP_TABLE_LINK): Defined. * All backends: Changed to use the new BFD_JUMP_TABLE_* macros rather than the single JUMP_TABLE macro. Removed many of the weird macro definitions needed to support the monolithic JUMP_TABLE. * bfd-in.h (JUMP_TABLE): Removed. * libbfd-in.h: Define a bunch of macros, and declare a few functions, for use with the new BFD_JUMP_TABLE_* macros. * libbfd.c (_bfd_dummy_new_section_hook): Removed. (bfd_false): Set bfd_error_invalid_operation. (bfd_nullvoidptr): Likewise. (bfd_n1): New function. (_bfd_nocore_core_file_matches_executable_p): Renamed from _bfd_dummy_core_file_matches_executable_p. (_bfd_nocore_core_file_failing_command): Similar rename. Set bfd_error_invalid_operation. (_bfd_nocore_core_file_failing_signal): Likewise. (_bfd_generic_get_section_contents): Renamed from bfd_generic_get_section_contents. Changed all callers. (_bfd_generic_set_section_contents): Similar rename. * ieee.c: #if 0 out ieee_bfd_debug_info_start, ieee_bfd_debug_info_end, ieee_bfd_debug_info_accumulate. They were never called. * bfd-in2.h: Rebuilt. * libbfd.h: Rebuilt.
Diffstat (limited to 'bfd/elf64-target.h')
-rw-r--r--bfd/elf64-target.h43
1 files changed, 20 insertions, 23 deletions
diff --git a/bfd/elf64-target.h b/bfd/elf64-target.h
index 454f0d5..a7b1b27 100644
--- a/bfd/elf64-target.h
+++ b/bfd/elf64-target.h
@@ -25,21 +25,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
There are two such structures here: one for big-endian machines and
one for little-endian machines. */
-/* Archives are generic or unimplemented. */
-#ifndef bfd_elf64_slurp_armap
-#define bfd_elf64_slurp_armap bfd_slurp_coff_armap
+#define bfd_elf64_close_and_cleanup _bfd_generic_close_and_cleanup
+#define bfd_elf64_bfd_free_cached_info _bfd_generic_bfd_free_cached_info
+#ifndef bfd_elf64_get_section_contents
+#define bfd_elf64_get_section_contents _bfd_generic_get_section_contents
#endif
-#define bfd_elf64_slurp_extended_name_table _bfd_slurp_extended_name_table
-#define bfd_elf64_truncate_arname bfd_dont_truncate_arname
-#define bfd_elf64_openr_next_archived_file bfd_generic_openr_next_archived_file
-#define bfd_elf64_generic_stat_arch_elt bfd_generic_stat_arch_elt
-#ifndef bfd_elf64_write_armap
-#define bfd_elf64_write_armap coff_write_armap
-#endif
-
-/* Ordinary section reading and writing */
-#define bfd_elf64_get_section_contents bfd_generic_get_section_contents
-#define bfd_elf64_close_and_cleanup bfd_generic_close_and_cleanup
#define bfd_elf64_bfd_debug_info_start bfd_void
#define bfd_elf64_bfd_debug_info_end bfd_void
@@ -71,9 +61,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef bfd_elf64_bfd_is_local_label
#define bfd_elf64_bfd_is_local_label bfd_generic_is_local_label
#endif
-#ifndef bfd_elf64_bfd_free_cached_info
-#define bfd_elf64_bfd_free_cached_info bfd_true
-#endif
#ifndef elf_info_to_howto_rel
#define elf_info_to_howto_rel 0
@@ -211,9 +198,14 @@ bfd_target TARGET_BIG_SYM =
bfd_false
},
- /* Initialize a jump table with the standard macro. All names start with
- "elf" */
- JUMP_TABLE(bfd_elf64),
+ BFD_JUMP_TABLE_GENERIC (bfd_elf64),
+ BFD_JUMP_TABLE_COPY (bfd_elf64),
+ BFD_JUMP_TABLE_CORE (bfd_elf64),
+ BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_coff),
+ BFD_JUMP_TABLE_SYMBOLS (bfd_elf64),
+ BFD_JUMP_TABLE_RELOCS (bfd_elf64),
+ BFD_JUMP_TABLE_WRITE (bfd_elf64),
+ BFD_JUMP_TABLE_LINK (bfd_elf64),
/* backend_data: */
(PTR) &elf64_bed,
@@ -293,9 +285,14 @@ bfd_target TARGET_LITTLE_SYM =
bfd_false
},
- /* Initialize a jump table with the standard macro. All names start with
- "elf" */
- JUMP_TABLE(bfd_elf64),
+ BFD_JUMP_TABLE_GENERIC (bfd_elf64),
+ BFD_JUMP_TABLE_COPY (bfd_elf64),
+ BFD_JUMP_TABLE_CORE (bfd_elf64),
+ BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_coff),
+ BFD_JUMP_TABLE_SYMBOLS (bfd_elf64),
+ BFD_JUMP_TABLE_RELOCS (bfd_elf64),
+ BFD_JUMP_TABLE_WRITE (bfd_elf64),
+ BFD_JUMP_TABLE_LINK (bfd_elf64),
/* backend_data: */
(PTR) &elf64_bed,