diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-01-06 20:04:43 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-01-06 20:04:43 +0000 |
commit | 966e0a16b8a8600de83c0e123dd00167d5b6f4ad (patch) | |
tree | 4f9868dbcbdc2acc15fbfd156be301cb0d8d475e /bfd/bfd-in.h | |
parent | b9395be3aff1e1199864ff60b175947c2bb60b7c (diff) | |
download | gdb-966e0a16b8a8600de83c0e123dd00167d5b6f4ad.zip gdb-966e0a16b8a8600de83c0e123dd00167d5b6f4ad.tar.gz gdb-966e0a16b8a8600de83c0e123dd00167d5b6f4ad.tar.bz2 |
* ecoff.c: First cut at new style of linker backend for
ECOFF--added a bunch of functions. Also:
(ecoff_sec_to_styp_flags): Set flags for .pdata and .xdata.
(ecoff_slurp_symbolic_header): New function.
(ecoff_slurp_symbolic_info): Call ecoff_slurp_symbolic_header.
(ecoff_compute_reloc_file_positions): New function.
(ecoff_set_section_contents): Get out quickly if count is zero.
Check errors better.
(ecoff_write_object_contents): Put .xdata section in data segment.
Call ecoff_compute_reloc_file_positions. Don't output relocs or
external symbols if outsymbols is NULL.
(ecoff_bfd_final_link): Completely rewritten.
* libecoff.h: Include bfdlink.h.
(struct ecoff_backend_data): Add relocate_section field.
(ecoff_data_type): Add sym_hashes and symndx_to_section fields.
(struct ecoff_link_hash_entry): Define.
(struct ecoff_link_hash_table): Define.
(ecoff_bfd_link_add_symbols): Declare as function, not macro.
(ecoff_bfd_link_hash_table_create): Likewise.
* ecofflink.c (bfd_ecoff_debug_one_external): New function.
(bfd_ecoff_debug_externals): Call bfd_ecoff_debug_one_external.
* bfd-in.h (bfd_ecoff_debug_one_external): Declare.
* bfd-in2.h: Rebuilt.
* coff-alpha.c (alpha_howto_table): Mark BRADDR as
partial_inplace, and set the src_mask to 0x1fffff.
(alpha_ecoff_get_relocated_section_contents): Remove unused
variable gp_warned.
(alpha_convert_external_reloc): New static function.
(alpha_relocate_section): New static function.
(alpha_ecoff_backend_data): Initialize relocate_section field.
* coff-mips.c (mips_relocate_refhi): New static function.
(mips_relocate_section): New static function.
(mips_ecoff_backend_data): Initialize relocate_section field.
Diffstat (limited to 'bfd/bfd-in.h')
-rw-r--r-- | bfd/bfd-in.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h index 343944b..5de9115 100644 --- a/bfd/bfd-in.h +++ b/bfd/bfd-in.h @@ -407,7 +407,8 @@ extern struct bfd_hash_entry *bfd_hash_newfunc const char *)); /* Grab some space for a hash table entry. */ -extern PTR bfd_hash_allocate PARAMS ((struct bfd_hash_table *, size_t)); +extern PTR bfd_hash_allocate PARAMS ((struct bfd_hash_table *, + unsigned int)); /* Traverse a hash table in a random order, calling a function on each element. If the function returns false, the traversal stops. The @@ -558,6 +559,10 @@ extern boolean bfd_ecoff_debug_externals struct ecoff_extr *), void (*set_index) (struct symbol_cache_entry *, bfd_size_type))); +extern boolean bfd_ecoff_debug_one_external + PARAMS ((bfd *abfd, struct ecoff_debug_info *debug, + const struct ecoff_debug_swap *swap, + const char *name, struct ecoff_extr *esym)); extern bfd_size_type bfd_ecoff_debug_size PARAMS ((bfd *abfd, struct ecoff_debug_info *debug, const struct ecoff_debug_swap *swap)); |