aboutsummaryrefslogtreecommitdiff
path: root/bfd/targets.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-10-21 23:43:29 +0000
committerIan Lance Taylor <ian@airs.com>1994-10-21 23:43:29 +0000
commitcd9782e8fd31f32bb976b676249eeefec916c956 (patch)
tree18b6b5b4d578d10d8765984420bbbcc60cc85af7 /bfd/targets.c
parentf93fc389959e35e2e99248b981d7ffb0cd148375 (diff)
downloadgdb-cd9782e8fd31f32bb976b676249eeefec916c956.zip
gdb-cd9782e8fd31f32bb976b676249eeefec916c956.tar.gz
gdb-cd9782e8fd31f32bb976b676249eeefec916c956.tar.bz2
* targets.c (BFD_JUMP_TABLE_ARCHIVE): Add case for
_construct_extended_name_table. (bfd_target): Add _bfd_construct_extended_name_table. * archive.c (_bfd_archive_bsd_construct_extended_name_table): New function. (_bfd_archive_coff_construct_extended_name_table): New function. (_bfd_construct_extended_name_table): Renamed by adding a leading underscore, and made externally visible. Added trailing_slash argument, and used it instead of elf_style. Changed type of tablen to bfd_size_type *. (_bfd_write_archive_contents): Use BFD_SEND to call construct_extended_name_table. Use the returned name. * libbfd-in.h (_bfd_construct_extended_name_table): Declare. (_bfd_noarchive_construct_extended_name_table): Define. (_bfd_archive_bsd_construct_extended_name_table): Declare. (_bfd_archive_coff_construct_extended_name_table): Declare. * bfd-in2.h: Rebuild. * libbfd.h: Rebuild. * som.c (som_construct_extended_name_table): New static function. * aout-target.h (MY_construct_extended_name_table): Define. * coff-rs6000.c (rs6000coff_construct_extended_name_table): Define. * ieee.c (ieee_construct_extended_name_table): Define. * libecoff.h (_bfd_ecoff_construct_extended_name_table): Define. * oasys.c (oasys_construct_extended_name_table): Define.
Diffstat (limited to 'bfd/targets.c')
-rw-r--r--bfd/targets.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/targets.c b/bfd/targets.c
index 085028d..61018a5 100644
--- a/bfd/targets.c
+++ b/bfd/targets.c
@@ -283,6 +283,7 @@ The general target vector.
.#define BFD_JUMP_TABLE_ARCHIVE(NAME)\
.CAT(NAME,_slurp_armap),\
.CAT(NAME,_slurp_extended_name_table),\
+.CAT(NAME,_construct_extended_name_table),\
.CAT(NAME,_truncate_arname),\
.CAT(NAME,_write_armap),\
.CAT(NAME,_openr_next_archived_file),\
@@ -290,6 +291,8 @@ The general target vector.
.CAT(NAME,_update_armap_timestamp)
. boolean (*_bfd_slurp_armap) PARAMS ((bfd *));
. boolean (*_bfd_slurp_extended_name_table) PARAMS ((bfd *));
+. boolean (*_bfd_construct_extended_name_table)
+. PARAMS ((bfd *, char **, bfd_size_type *, const char **));
. void (*_bfd_truncate_arname) PARAMS ((bfd *, CONST char *, char *));
. boolean (*write_armap) PARAMS ((bfd *arch,
. unsigned int elength,