summaryrefslogtreecommitdiff
path: root/bfd/binary.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2002-01-06 07:30:35 +0000
committerAlan Modra <amodra@bigpond.net.au>2002-01-06 07:30:35 +0000
commit731603bf92030ae0ffb945ec185d3aa44b430dec (patch)
tree005da771d7fe697e0950658cd5af83e83d99ab69 /bfd/binary.c
parent28bc9305cf5c0db563f9193fd31bd1a77fa48d03 (diff)
downloadgdb-731603bf92030ae0ffb945ec185d3aa44b430dec.tar.gz
* syms.c (_bfd_generic_make_empty_symbol): New function.
* libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as _bfd_generic_make_empty_symbol. * libbfd.h: Regenerate. * bfd-in2.h: Regenerate. * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function. (hppabsd_core_get_symtab_upper_bound): Don't define. (hppabsd_core_get_symtab): Likewise. (hppabsd_core_print_symbol): Likewise. (hppabsd_core_get_symbol_info): Likewise. (hppabsd_core_bfd_is_local_label_name): Likewise. (hppabsd_core_get_lineno): Likewise. (hppabsd_core_find_nearest_line): Likewise. (hppabsd_core_bfd_make_debug_symbol): Likewise. (hppabsd_core_read_minisymbols): Likewise. (hppabsd_core_minisymbol_to_symbol): Likewise. (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols). Formatting fixes. * hpux-core.c: Similarly. * irix-core.c: Similarly. * osf-core.c: Similarly. * sco5-core.c: Similarly. * binary.c (binary_make_empty_symbol): Remove function, define as _bfd_generic_make_empty_symbol. * ihex.c (ihex_make_empty_symbol): Likewise. * mmo.c (mmo_make_empty_symbol): Likewise. * ppcboot.c (ppcboot_make_empty_symbol): Likewise. * srec.c (srec_make_empty_symbol): Likewise. * versados.c (versados_make_empty_symbol): Likewise. * vms.c (_bfd_vms_make_empty_symbol): Remove. (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol. * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol rather than _bfd_vms_make_empty_symbol. * vms-misc.c (new_symbol): Likewise.
Diffstat (limited to 'bfd/binary.c')
-rw-r--r--bfd/binary.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/bfd/binary.c b/bfd/binary.c
index 7b66f309014..705ac8fe260 100644
--- a/bfd/binary.c
+++ b/bfd/binary.c
@@ -48,7 +48,6 @@ static boolean binary_get_section_contents
static long binary_get_symtab_upper_bound PARAMS ((bfd *));
static char *mangle_name PARAMS ((bfd *, char *));
static long binary_get_symtab PARAMS ((bfd *, asymbol **));
-static asymbol *binary_make_empty_symbol PARAMS ((bfd *));
static void binary_get_symbol_info PARAMS ((bfd *, asymbol *, symbol_info *));
static boolean binary_set_section_contents
PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type));
@@ -219,15 +218,7 @@ binary_get_symtab (abfd, alocation)
return BIN_SYMS;
}
-/* Make an empty symbol. */
-
-static asymbol *
-binary_make_empty_symbol (abfd)
- bfd *abfd;
-{
- return (asymbol *) bfd_alloc (abfd, (bfd_size_type) sizeof (asymbol));
-}
-
+#define binary_make_empty_symbol _bfd_generic_make_empty_symbol
#define binary_print_symbol _bfd_nosymbols_print_symbol
/* Get information about a symbol. */