aboutsummaryrefslogtreecommitdiff
path: root/bfd/libcoff-in.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-04-24 18:10:46 +0000
committerIan Lance Taylor <ian@airs.com>1996-04-24 18:10:46 +0000
commitf5d6548535f5220d8cc37a052b9942064bbf1c4f (patch)
tree8dec3f3ab37f6ac3d1556e66014fb3b8e5f4973e /bfd/libcoff-in.h
parent116bf30f41acfe59b86e585c6110db6e2c37b05f (diff)
downloadgdb-f5d6548535f5220d8cc37a052b9942064bbf1c4f.zip
gdb-f5d6548535f5220d8cc37a052b9942064bbf1c4f.tar.gz
gdb-f5d6548535f5220d8cc37a052b9942064bbf1c4f.tar.bz2
* xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through the
members of an archive for dynamic objects with no symbols, and pass them directly to check_archive_element. (xcoff_link_check_ar_symbols): Pass dynamic objects to xcoff_link_check_dynamic_ar_symbols. (xcoff_link_check_dynamic_ar_symbols): New static function. The above is for PR 9520. * coff-rs6000.c (rs6000coff_vec): Change BFD_JUMP_TABLE_DYNAMIC from _bfd_nodynamic to _bfd_xcoff. * libcoff-in.h (_bfd_xcoff_get_dynamic_symtab_upper_bound): Declare. (_bfd_xcoff_canonicalize_dynamic_symtab): Declare. (_bfd_xcoff_get_dynamic_reloc_upper_bound): Declare. (_bfd_xcoff_canonicalize_dynamic_reloc): Declare. * libcoff.h: Rebuild. * xcofflink.c (xcoff_swap_ldrel_in): New static function. (xcoff_get_section_contents): New static function. (_bfd_xcoff_get_dynamic_symtab_upper_bound): New function. (_bfd_xcoff_canonicalize_dynamic_symtab): New function. (_bfd_xcoff_get_dynamic_reloc_upper_bound): New function. (xcoff_dynamic_reloc): New static variable. (_bfd_xcoff_canonicalize_dynamic_reloc): New function. (xcoff_link_add_dynamic_symbols): Use xcoff_get_section_contents.
Diffstat (limited to 'bfd/libcoff-in.h')
-rw-r--r--bfd/libcoff-in.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/bfd/libcoff-in.h b/bfd/libcoff-in.h
index e2242f5..aa1f530 100644
--- a/bfd/libcoff-in.h
+++ b/bfd/libcoff-in.h
@@ -177,6 +177,8 @@ struct coff_section_tdata
unsigned int i;
const char *function;
int line_base;
+ /* A pointer used for .stab linking optimizations. */
+ PTR stab_info;
/* Available for individual backends. */
PTR tdata;
};
@@ -236,6 +238,8 @@ struct coff_link_hash_entry
struct coff_link_hash_table
{
struct bfd_link_hash_table root;
+ /* A pointer to information used to link stabs in sections. */
+ PTR stab_info;
};
/* Look up an entry in a COFF linker hash table. */
@@ -473,6 +477,12 @@ extern boolean _bfd_coff_reloc_link_order
/* Functions in xcofflink.c. */
+extern long _bfd_xcoff_get_dynamic_symtab_upper_bound PARAMS ((bfd *));
+extern long _bfd_xcoff_canonicalize_dynamic_symtab
+ PARAMS ((bfd *, asymbol **));
+extern long _bfd_xcoff_get_dynamic_reloc_upper_bound PARAMS ((bfd *));
+extern long _bfd_xcoff_canonicalize_dynamic_reloc
+ PARAMS ((bfd *, arelent **, asymbol **));
extern struct bfd_link_hash_table *_bfd_xcoff_bfd_link_hash_table_create
PARAMS ((bfd *));
extern boolean _bfd_xcoff_bfd_link_add_symbols