From 833fb04eb808edad319c938ef3b9a6918d3f9f15 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 22 Nov 2006 03:33:51 +0000 Subject: [PATCH] * pef.c (bfd_pef_make_empty_symbol): Delete function. Define instead. * xsym.c (bfd_sym_make_empty_symbol): Likewise. * xsym.h (bfd_sym_make_empty_symbol): Delete. --- bfd/ChangeLog | 6 ++++++ bfd/pef.c | 6 +----- bfd/xsym.c | 6 +----- bfd/xsym.h | 2 -- 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 6cf89cccbdc..ae3f37ee8a7 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2006-11-22 Alan Modra + + * pef.c (bfd_pef_make_empty_symbol): Delete function. Define instead. + * xsym.c (bfd_sym_make_empty_symbol): Likewise. + * xsym.h (bfd_sym_make_empty_symbol): Delete. + 2006-11-21 Greg McGary * elf32-ppc.c (ppc_elf_relocate_section): Fixup D field diff --git a/bfd/pef.c b/bfd/pef.c index 23715f44c2d..fd52e78c9f1 100644 --- a/bfd/pef.c +++ b/bfd/pef.c @@ -987,11 +987,7 @@ bfd_pef_canonicalize_symtab (bfd *abfd, asymbol **alocation) return ret; } -static asymbol * -bfd_pef_make_empty_symbol (bfd *abfd) -{ - return bfd_alloc (abfd, sizeof (asymbol)); -} +#define bfd_pef_make_empty_symbol _bfd_generic_make_empty_symbol static void bfd_pef_get_symbol_info (bfd *abfd ATTRIBUTE_UNUSED, diff --git a/bfd/xsym.c b/bfd/xsym.c index b102bef34be..19a64a9bd9e 100644 --- a/bfd/xsym.c +++ b/bfd/xsym.c @@ -2275,11 +2275,7 @@ bfd_sym_object_p (bfd *abfd) return NULL; } -asymbol * -bfd_sym_make_empty_symbol (bfd *abfd) -{ - return bfd_alloc (abfd, sizeof (asymbol)); -} +#define bfd_sym_make_empty_symbol _bfd_generic_make_empty_symbol void bfd_sym_get_symbol_info (bfd *abfd ATTRIBUTE_UNUSED, asymbol *symbol, symbol_info *ret) diff --git a/bfd/xsym.h b/bfd/xsym.h index bbeadc22c96..7b69aadf34b 100644 --- a/bfd/xsym.h +++ b/bfd/xsym.h @@ -687,8 +687,6 @@ extern int bfd_sym_scan (bfd *, bfd_sym_version, bfd_sym_data_struct *); extern const bfd_target * bfd_sym_object_p (bfd *); -extern asymbol * bfd_sym_make_empty_symbol - (bfd *); extern void bfd_sym_get_symbol_info (bfd *, asymbol *, symbol_info *); extern long bfd_sym_get_symtab_upper_bound -- 2.30.2