From: David MacKenzie Date: Fri, 21 May 1993 21:06:25 +0000 (+0000) Subject: Move printing from bfd to nm and add POSIX and SysV formats. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=93b4f01814360ca78460944b64eedd721cc31832;p=binutils-gdb.git Move printing from bfd to nm and add POSIX and SysV formats. --- diff --git a/bfd/libelf.h b/bfd/libelf.h index ad0da248fd0..9cd9b161f17 100644 --- a/bfd/libelf.h +++ b/bfd/libelf.h @@ -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)); diff --git a/bfd/sco-core.c b/bfd/sco-core.c index a77a9ce19c0..fa36b772e6a 100644 --- a/bfd/sco-core.c +++ b/bfd/sco-core.c @@ -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, (*), \ diff --git a/bfd/targets.c b/bfd/targets.c index f9ba26d2b31..0fbf6ac4d22 100644 --- a/bfd/targets.c +++ b/bfd/targets.c @@ -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,