From bdd2e7f1797de0511de1708366dcb146e806c329 Mon Sep 17 00:00:00 2001 From: Kim Knuttila Date: Mon, 29 Jan 1996 19:31:34 +0000 Subject: [PATCH] Fixed exported names, removed a bad define --- bfd/ChangeLog | 9 ++++++++- bfd/cofflink.c | 18 +++++++++--------- bfd/libcoff-in.h | 12 ++++++------ bfd/libcoff.h | 12 ++++++------ 4 files changed, 29 insertions(+), 22 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 16313a51ff6..cd48dd65546 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +Mon Jan 29 14:27:24 1996 Kim Knuttila + + * libcoff-in.h: aligned newly exported names with bfd naming + conventions. Removed an erroneous define of POWERPC_LE_PE. + * libcoff.h: Rebuild. + * cofflink.c, coff-ppc.c: the above function name changes + Mon Jan 29 13:06:28 1996 Ian Lance Taylor * elflink.h (elf_link_add_object_symbols): Only set weakdef to a @@ -34,7 +41,7 @@ Fri Jan 26 18:33:35 1996 Ian Lance Taylor _bfd_stab_section_find_nearest_line before searching the ELF symbol table. Find the closest STT_FUNC symbol, not the last one. * libcoff-in.h (coff_data_type): Add line_info field. - * libcoff.h: Rebuild. + * libcoff.h: Rebuild. * coffgen.c (coff_find_nearest_line): Try calling _bfd_stab_section_find_nearest_line before searching the COFF symbol table. diff --git a/bfd/cofflink.c b/bfd/cofflink.c index 2de8f988b81..999a81e1bbb 100644 --- a/bfd/cofflink.c +++ b/bfd/cofflink.c @@ -108,7 +108,7 @@ _bfd_coff_link_hash_table_create (abfd) /* Create an entry in a COFF debug merge hash table. */ struct bfd_hash_entry * -coff_debug_merge_hash_newfunc (entry, table, string) +_bfd_coff_debug_merge_hash_newfunc (entry, table, string) struct bfd_hash_entry *entry; struct bfd_hash_table *table; const char *string; @@ -663,7 +663,7 @@ _bfd_coff_final_link (abfd, info) sub = p->u.indirect.section->owner; if (! sub->output_has_begun) { - if (! coff_link_input_bfd (&finfo, sub)) + if (! _bfd_coff_link_input_bfd (&finfo, sub)) goto error_return; sub->output_has_begun = true; } @@ -671,7 +671,7 @@ _bfd_coff_final_link (abfd, info) else if (p->type == bfd_section_reloc_link_order || p->type == bfd_symbol_reloc_link_order) { - if (! coff_reloc_link_order (abfd, &finfo, o, p)) + if (! _bfd_coff_reloc_link_order (abfd, &finfo, o, p)) goto error_return; } else @@ -682,7 +682,7 @@ _bfd_coff_final_link (abfd, info) } } - /* Free up the buffers used by coff_link_input_bfd. */ + /* Free up the buffers used by _bfd_coff_link_input_bfd. */ coff_debug_merge_hash_table_free (&finfo.debug_merge); debug_merge_allocated = false; @@ -742,12 +742,12 @@ _bfd_coff_final_link (abfd, info) /* Write out the global symbols. */ finfo.failed = false; - coff_link_hash_traverse (coff_hash_table (info), coff_write_global_sym, + coff_link_hash_traverse (coff_hash_table (info), _bfd_coff_write_global_sym, (PTR) &finfo); if (finfo.failed) goto error_return; - /* The outsyms buffer is used by coff_write_global_sym. */ + /* The outsyms buffer is used by _bfd_coff_write_global_sym. */ if (finfo.outsyms != NULL) { free (finfo.outsyms); @@ -1016,7 +1016,7 @@ process_embedded_commands (output_bfd, info, abfd) handles all the sections and relocations of the input file at once. */ boolean -coff_link_input_bfd (finfo, input_bfd) +_bfd_coff_link_input_bfd (finfo, input_bfd) struct coff_final_link_info *finfo; bfd *input_bfd; { @@ -1901,7 +1901,7 @@ coff_link_input_bfd (finfo, input_bfd) /* Write out a global symbol. Called via coff_link_hash_traverse. */ boolean -coff_write_global_sym (h, data) +_bfd_coff_write_global_sym (h, data) struct coff_link_hash_entry *h; PTR data; { @@ -2032,7 +2032,7 @@ coff_write_global_sym (h, data) /* Handle a link order which is supposed to generate a reloc. */ boolean -coff_reloc_link_order (output_bfd, finfo, output_section, link_order) +_bfd_coff_reloc_link_order (output_bfd, finfo, output_section, link_order) bfd *output_bfd; struct coff_final_link_info *finfo; asection *output_section; diff --git a/bfd/libcoff-in.h b/bfd/libcoff-in.h index 9201e42bf39..ad0b983c797 100644 --- a/bfd/libcoff-in.h +++ b/bfd/libcoff-in.h @@ -302,7 +302,7 @@ extern void bfd_perform_slip PARAMS ((bfd *abfd, unsigned int slip, /* Functions and types in cofflink.c. */ #define STRING_SIZE_SIZE (4) -#define POWERPC_LE_PE + /* We use a hash table to merge identical enum, struct, and union definitions in the linker. */ @@ -361,7 +361,7 @@ struct coff_debug_merge_hash_table /* Initialize a COFF debug merge hash table. */ #define coff_debug_merge_hash_table_init(table) \ - (bfd_hash_table_init (&(table)->root, coff_debug_merge_hash_newfunc)) + (bfd_hash_table_init (&(table)->root, _bfd_coff_debug_merge_hash_newfunc)) /* Free a COFF debug merge hash table. */ @@ -449,13 +449,13 @@ extern boolean _bfd_coff_generic_relocate_section PARAMS ((bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *, struct internal_reloc *, struct internal_syment *, asection **)); -extern struct bfd_hash_entry *coff_debug_merge_hash_newfunc +extern struct bfd_hash_entry *_bfd_coff_debug_merge_hash_newfunc PARAMS ((struct bfd_hash_entry *, struct bfd_hash_table *, const char *)); -extern boolean coff_write_global_sym +extern boolean _bfd_coff_write_global_sym PARAMS ((struct coff_link_hash_entry *, PTR)); -extern boolean coff_link_input_bfd +extern boolean _bfd_coff_link_input_bfd PARAMS ((struct coff_final_link_info *, bfd *)); -extern boolean coff_reloc_link_order +extern boolean _bfd_coff_reloc_link_order PARAMS ((bfd *, struct coff_final_link_info *, asection *, struct bfd_link_order *)); diff --git a/bfd/libcoff.h b/bfd/libcoff.h index 3412c92d495..289c0332b9d 100644 --- a/bfd/libcoff.h +++ b/bfd/libcoff.h @@ -302,7 +302,7 @@ extern void bfd_perform_slip PARAMS ((bfd *abfd, unsigned int slip, /* Functions and types in cofflink.c. */ #define STRING_SIZE_SIZE (4) -#define POWERPC_LE_PE + /* We use a hash table to merge identical enum, struct, and union definitions in the linker. */ @@ -361,7 +361,7 @@ struct coff_debug_merge_hash_table /* Initialize a COFF debug merge hash table. */ #define coff_debug_merge_hash_table_init(table) \ - (bfd_hash_table_init (&(table)->root, coff_debug_merge_hash_newfunc)) + (bfd_hash_table_init (&(table)->root, _bfd_coff_debug_merge_hash_newfunc)) /* Free a COFF debug merge hash table. */ @@ -449,13 +449,13 @@ extern boolean _bfd_coff_generic_relocate_section PARAMS ((bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *, struct internal_reloc *, struct internal_syment *, asection **)); -extern struct bfd_hash_entry *coff_debug_merge_hash_newfunc +extern struct bfd_hash_entry *_bfd_coff_debug_merge_hash_newfunc PARAMS ((struct bfd_hash_entry *, struct bfd_hash_table *, const char *)); -extern boolean coff_write_global_sym +extern boolean _bfd_coff_write_global_sym PARAMS ((struct coff_link_hash_entry *, PTR)); -extern boolean coff_link_input_bfd +extern boolean _bfd_coff_link_input_bfd PARAMS ((struct coff_final_link_info *, bfd *)); -extern boolean coff_reloc_link_order +extern boolean _bfd_coff_reloc_link_order PARAMS ((bfd *, struct coff_final_link_info *, asection *, struct bfd_link_order *)); -- 2.30.2