Move printing from bfd to nm and add POSIX and SysV formats.
authorDavid MacKenzie <djm@cygnus>
Fri, 21 May 1993 21:06:25 +0000 (21:06 +0000)
committerDavid MacKenzie <djm@cygnus>
Fri, 21 May 1993 21:06:25 +0000 (21:06 +0000)
bfd/libelf.h
bfd/sco-core.c
bfd/targets.c

index ad0da248fd05a7d68e1a1f07d293e97a1d507dd5..9cd9b161f17101cf75c9a3d963e3dce9ccd6b070 100644 (file)
@@ -65,6 +65,8 @@ extern unsigned int elf_canonicalize_reloc PARAMS ((bfd *, sec_ptr,
 extern asymbol *elf_make_empty_symbol PARAMS ((bfd *));
 extern void elf_print_symbol PARAMS ((bfd *, PTR, asymbol *,
                                      bfd_print_symbol_type));
+extern void elf_get_symbol_info PARAMS ((bfd *, asymbol *,
+                                        symbol_info *));
 extern alent *elf_get_lineno PARAMS ((bfd *, asymbol *));
 extern boolean elf_set_arch_mach PARAMS ((bfd *, enum bfd_architecture,
                                          unsigned long));
index a77a9ce19c0ef60c3178767079eda352975d69ea..fa36b772e6afc1a4bead9effcfcc6fa8f63cac0d 100644 (file)
@@ -232,6 +232,9 @@ sco_core_file_matches_executable_p  (core_bfd, exec_bfd)
 #define        sco_print_symbol                        (PROTO (void, (*),      \
        (bfd *, PTR, struct symbol_cache_entry  *,                      \
         bfd_print_symbol_type))) bfd_false
+#define        sco_get_symbol_info                     (PROTO (void, (*),      \
+       (bfd *, struct symbol_cache_entry  *,                   \
+        symbol_info *))) bfd_false
 #define        sco_get_lineno                  (PROTO (alent *, (*),   \
        (bfd *, struct symbol_cache_entry *))) bfd_nullvoidptr
 #define        sco_set_arch_mach                       (PROTO (boolean, (*),   \
index f9ba26d2b31fb0614b2f642db01c2c1b81630d53..0fbf6ac4d225fc742786cf5ff1c06a8bd1435e0b 100644 (file)
@@ -261,6 +261,10 @@ Symbols and relocations
 .                                      struct symbol_cache_entry *,
 .                                      bfd_print_symbol_type));
 .#define bfd_print_symbol(b,p,s,e) BFD_SEND(b, _bfd_print_symbol, (b,p,s,e))
+.  void          (*_bfd_get_symbol_info) PARAMS ((bfd *,
+.                                      struct symbol_cache_entry *,
+.                                      symbol_info *));
+.#define bfd_get_symbol_info(b,p,e) BFD_SEND(b, _bfd_get_symbol_info, (b,p,e))
 
 .  alent *    (*_get_lineno) PARAMS ((bfd *, struct symbol_cache_entry *));
 .
@@ -372,7 +376,9 @@ extern bfd_target h8300coff_vec;
 extern bfd_target h8500coff_vec;
 extern bfd_target z8kcoff_vec;
 extern bfd_target we32kcoff_vec;
-#ifdef HOST_HPPAHPUX
+extern bfd_target shcoff_vec;
+
+#if defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD)
 extern bfd_target hppa_vec;
 #endif
 
@@ -430,7 +436,7 @@ bfd_target *target_vector[] = {
        &m68kcoff_vec,
        &a29kcoff_big_vec,
        &rs6000coff_vec,
-#ifdef HOST_HPPAHPUX
+#if defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD)
         &hppa_vec,
 #endif
        &we32kcoff_vec,