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 ad0da24..9cd9b16 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 a77a9ce..fa36b77 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 f9ba26d..0fbf6ac 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,