]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* pef.c (bfd_pef_make_empty_symbol): Delete function. Define instead.
authorAlan Modra <amodra@gmail.com>
Wed, 22 Nov 2006 03:33:51 +0000 (03:33 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 22 Nov 2006 03:33:51 +0000 (03:33 +0000)
* xsym.c (bfd_sym_make_empty_symbol): Likewise.
* xsym.h (bfd_sym_make_empty_symbol): Delete.

bfd/ChangeLog
bfd/pef.c
bfd/xsym.c
bfd/xsym.h

index 6cf89cccbdca90c02c364360bd482365e7193e74..ae3f37ee8a780a21fce8e9c3d122c5b69f7fdfe9 100644 (file)
@@ -1,3 +1,9 @@
+2006-11-22  Alan Modra  <amodra@bigpond.net.au>
+
+       * 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  <greg@mcgary.org>
 
        * elf32-ppc.c (ppc_elf_relocate_section): Fixup D field
index 23715f44c2df7a736240d89e6f04afd75cda0ce5..fd52e78c9f10b84b87a264d417b7952ebade2497 100644 (file)
--- 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,
index b102bef34bea8eb7400a95772c8afa41c8068448..19a64a9bd9ede6e54565719bb6e60730b99eb419 100644 (file)
@@ -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)
index bbeadc22c960e289d9955e0d030800d692d3cc77..7b69aadf34b29124da18421a5e4b4e4f01ca1479 100644 (file)
@@ -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