aboutsummaryrefslogtreecommitdiff
path: root/bfd/targets.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-10-06 16:15:35 +0000
committerIan Lance Taylor <ian@airs.com>1995-10-06 16:15:35 +0000
commitc53fac125a5c39ded11bb5e9da284214e723b965 (patch)
tree1a9424abd6f097895fedb6fb4a514ea48393145b /bfd/targets.c
parentbb2deaf25f57e1a6d77f2321e9091f1e4a5e9c1d (diff)
downloadgdb-c53fac125a5c39ded11bb5e9da284214e723b965.zip
gdb-c53fac125a5c39ded11bb5e9da284214e723b965.tar.gz
gdb-c53fac125a5c39ded11bb5e9da284214e723b965.tar.bz2
* targets.c (bfd_target): Add _bfd_read_ar_hdr field. Modify
BFD_JUMP_TABLE_ARCHIVE accordingly. * libbfd-in.h (_bfd_snarf_ar_hdr): Don't declare. (_bfd_compute_and_write_armap): Declare. (_bfd_generic_read_ar_hdr): Declare. (_bfd_read_ar_hdr): Define. (_bfd_noarchive_read_ar_hdr): Define. (_bfd_archive_bsd_read_ar_hdr): Define. (_bfd_archive_coff_read_ar_hdr): Define. * archive.c: Change all callers of _bfd_snarf_ar_hdr to call _bfd_read_ar_hdr instead. (_bfd_generic_read_ar_hdr): Rename from _bfd_snarf_ar_hdr. (_bfd_compute_and_write_armap): Rename from compute_and_write_armap. Make non-static. Change all callers. * ecoff.c (_bfd_ecoff_slurp_armap): Call _bfd_read_ar_hdr rather than _bfd_snarf_ar_hdr. * aout-target.h (MY_read_ar_hdr): Define if not defined. * ieee.c (ieee_read_ar_hdr): Define. * libecoff.h (_bfd_ecoff_read_ar_hdr): Define. * oasys.c (oasys_read_ar_hdr): Define. * som.c (som_read_ar_hdr): Define. * bfd-in2.h, libbfd.h: Rebuild.
Diffstat (limited to 'bfd/targets.c')
-rw-r--r--bfd/targets.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/targets.c b/bfd/targets.c
index 6728002..78a57a5 100644
--- a/bfd/targets.c
+++ b/bfd/targets.c
@@ -301,6 +301,7 @@ The general target vector.
.CAT(NAME,_construct_extended_name_table),\
.CAT(NAME,_truncate_arname),\
.CAT(NAME,_write_armap),\
+.CAT(NAME,_read_ar_hdr),\
.CAT(NAME,_openr_next_archived_file),\
.CAT(NAME,_generic_stat_arch_elt),\
.CAT(NAME,_update_armap_timestamp)
@@ -314,6 +315,7 @@ The general target vector.
. struct orl *map,
. unsigned int orl_count,
. int stridx));
+. PTR (*_bfd_read_ar_hdr) PARAMS ((bfd *));
. bfd * (*openr_next_archived_file) PARAMS ((bfd *arch, bfd *prev));
. int (*_bfd_stat_arch_elt) PARAMS ((bfd *, struct stat *));
. boolean (*_bfd_update_armap_timestamp) PARAMS ((bfd *));
@@ -533,6 +535,7 @@ extern const bfd_target pc532netbsd_vec;
extern const bfd_target oasys_vec;
extern const bfd_target pc532machaout_vec;
extern const bfd_target riscix_vec;
+extern const bfd_target pmac_xcoff_vec;
extern const bfd_target rs6000coff_vec;
extern const bfd_target shcoff_vec;
/* start-sanitize-rce */
@@ -709,6 +712,10 @@ const bfd_target * const bfd_target_vector[] = {
&aout_arm_little_vec,
&riscix_vec,
#endif
+#if 0
+ /* This has the same magic number as RS/6000. */
+ &pmac_xcoff_vec,
+#endif
&rs6000coff_vec,
&shcoff_vec,
&shlcoff_vec,