2001-08-23 H.J. Lu <hjl@gnu.org>
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 23 Aug 2001 15:45:19 +0000 (15:45 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 23 Aug 2001 15:45:19 +0000 (15:45 +0000)
* syms.c (bfd_print_symbol_vandf): Add abfd to arg.
* bfd-in2.h (bfd_print_symbol_vandf): Regenerated.

* aoutx.h (NAME(aout,print_symbol)): Pass abfd to
bfd_print_symbol_vandf.
* coffgen.c (coff_print_symbol): Likewise.
* elf.c (bfd_elf_print_symbol): Likewise.
* ieee.c (ieee_print_symbol): Likewise.
* nlmcode.h (nlm_print_symbol): Likewise.
* oasys.c (oasys_print_symbol): Likewise.
* pdp11.c (NAME(aout,print_symbol)): Likewise.
* som.c (som_print_symbol): Likewise.
* srec.c (srec_print_symbol): Likewise.
* tekhex.c (tekhex_print_symbol): Likewise.
* versados.c (versados_print_symbol): Likewise.
* vms.c (vms_print_symbol): Likewise.

* elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
with bfd_fprintf_vma.
(bfd_elf_print_symbol): Likewise.
* syms.c (bfd_print_symbol_vandf): Likewise.

15 files changed:
bfd/ChangeLog
bfd/aoutx.h
bfd/bfd-in2.h
bfd/coffgen.c
bfd/elf.c
bfd/ieee.c
bfd/nlmcode.h
bfd/oasys.c
bfd/pdp11.c
bfd/som.c
bfd/srec.c
bfd/syms.c
bfd/tekhex.c
bfd/versados.c
bfd/vms.c

index fc01f0337158d0534c22cc7a3ccbbbc36925d2da..583d82917cfb04e2085f2045eb76c3d8387fb3fc 100644 (file)
@@ -1,3 +1,27 @@
+2001-08-23  H.J. Lu  <hjl@gnu.org>
+
+       * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
+       * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
+
+       * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
+       bfd_print_symbol_vandf.
+       * coffgen.c (coff_print_symbol): Likewise.
+       * elf.c (bfd_elf_print_symbol): Likewise.
+       * ieee.c (ieee_print_symbol): Likewise.
+       * nlmcode.h (nlm_print_symbol): Likewise.
+       * oasys.c (oasys_print_symbol): Likewise.
+       * pdp11.c (NAME(aout,print_symbol)): Likewise.
+       * som.c (som_print_symbol): Likewise.
+       * srec.c (srec_print_symbol): Likewise.
+       * tekhex.c (tekhex_print_symbol): Likewise.
+       * versados.c (versados_print_symbol): Likewise.
+       * vms.c (vms_print_symbol): Likewise.
+
+       * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
+       with bfd_fprintf_vma.
+       (bfd_elf_print_symbol): Likewise.
+       * syms.c (bfd_print_symbol_vandf): Likewise.
+
 2001-08-23  Nick Clifton  <nickc@cambridge.redhat.com>
 
        * aoutf1.h (sunos_write_object_contents): Silence compile time
index e9c1d2fef09823e5bca984bc1de179385af9e51e..603cac7c8629a3144477f2541ec9d821448e1e9e 100644 (file)
@@ -2590,8 +2590,8 @@ NAME(aout,get_symbol_info) (ignore_abfd, symbol, ret)
 }
 
 void
-NAME(aout,print_symbol) (ignore_abfd, afile, symbol, how)
-     bfd *ignore_abfd ATTRIBUTE_UNUSED;
+NAME(aout,print_symbol) (abfd, afile, symbol, how)
+     bfd *abfd;
      PTR afile;
      asymbol *symbol;
      bfd_print_symbol_type how;
@@ -2612,7 +2612,7 @@ NAME(aout,print_symbol) (ignore_abfd, afile, symbol, how)
     {
    CONST char *section_name = symbol->section->name;
 
-      bfd_print_symbol_vandf((PTR)file,symbol);
+      bfd_print_symbol_vandf (abfd, (PTR)file, symbol);
 
       fprintf (file," %-5s %04x %02x %02x",
              section_name,
index 67881f2c150458ca73406f8a85b2a0f2fda5b795..4b6f44e40e183f57f6fa4e4e650e0a50f0d914ef 100644 (file)
@@ -2945,7 +2945,7 @@ boolean
 bfd_set_symtab PARAMS ((bfd *abfd, asymbol **location, unsigned int count));
 
 void
-bfd_print_symbol_vandf PARAMS ((PTR file, asymbol *symbol));
+bfd_print_symbol_vandf PARAMS ((bfd *abfd, PTR file, asymbol *symbol));
 
 #define bfd_make_empty_symbol(abfd) \
      BFD_SEND (abfd, _bfd_make_empty_symbol, (abfd))
index 533b88998a3c686c42af0240b71103a0c0d50f1e..45eda875d5c56f2624764282a52e590ccaa9067c 100644 (file)
@@ -2151,7 +2151,7 @@ coff_print_symbol (abfd, filep, symbol, how)
        }
       else
        {
-         bfd_print_symbol_vandf ((PTR) file, symbol);
+         bfd_print_symbol_vandf (abfd, (PTR) file, symbol);
          fprintf (file, " %-5s %s %s %s",
                   symbol->section->name,
                   coffsymbol (symbol)->native ? "n" : "g",
index 1cbb18033954230da2d9d578be91a56f0504cd76..d1aab9e2f9a151e8e7105f4c7d86efabf5d27942 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -612,16 +612,16 @@ _bfd_elf_print_private_bfd_data (abfd, farg)
            default: sprintf (buf, "0x%lx", p->p_type); s = buf; break;
            }
          fprintf (f, "%8s off    0x", s);
-         fprintf_vma (f, p->p_offset);
+         bfd_fprintf_vma (abfd, f, p->p_offset);
          fprintf (f, " vaddr 0x");
-         fprintf_vma (f, p->p_vaddr);
+         bfd_fprintf_vma (abfd, f, p->p_vaddr);
          fprintf (f, " paddr 0x");
-         fprintf_vma (f, p->p_paddr);
+         bfd_fprintf_vma (abfd, f, p->p_paddr);
          fprintf (f, " align 2**%u\n", bfd_log2 (p->p_align));
          fprintf (f, "         filesz 0x");
-         fprintf_vma (f, p->p_filesz);
+         bfd_fprintf_vma (abfd, f, p->p_filesz);
          fprintf (f, " memsz 0x");
-         fprintf_vma (f, p->p_memsz);
+         bfd_fprintf_vma (abfd, f, p->p_memsz);
          fprintf (f, " flags %c%c%c",
                   (p->p_flags & PF_R) != 0 ? 'r' : '-',
                   (p->p_flags & PF_W) != 0 ? 'w' : '-',
@@ -830,7 +830,7 @@ bfd_elf_print_symbol (abfd, filep, symbol, how)
       break;
     case bfd_print_symbol_more:
       fprintf (file, "elf ");
-      fprintf_vma (file, symbol->value);
+      bfd_fprintf_vma (abfd, file, symbol->value);
       fprintf (file, " %lx", (long) symbol->flags);
       break;
     case bfd_print_symbol_all:
@@ -849,7 +849,7 @@ bfd_elf_print_symbol (abfd, filep, symbol, how)
        if (name == NULL)
          {
            name = symbol->name;
-           bfd_print_symbol_vandf ((PTR) file, symbol);
+           bfd_print_symbol_vandf (abfd, (PTR) file, symbol);
          }
 
        fprintf (file, " %s\t", section_name);
@@ -857,10 +857,10 @@ bfd_elf_print_symbol (abfd, filep, symbol, how)
           we've already printed the size; now print the alignment.
           For other symbols, we have no specified alignment, and
           we've printed the address; now print the size.  */
-       fprintf_vma (file,
-                    (bfd_is_com_section (symbol->section)
-                     ? ((elf_symbol_type *) symbol)->internal_elf_sym.st_value
-                     : ((elf_symbol_type *) symbol)->internal_elf_sym.st_size));
+       bfd_fprintf_vma (abfd, file,
+                        (bfd_is_com_section (symbol->section)
+                         ? ((elf_symbol_type *) symbol)->internal_elf_sym.st_value
+                         : ((elf_symbol_type *) symbol)->internal_elf_sym.st_size));
 
        /* If we have version information, print it.  */
        if (elf_tdata (abfd)->dynversym_section != 0
index 2a21b262af204cafc1a4c820968f9a4b03fa03ff..f49ee53bbd8c088382a165d102925d2c426f7bf6 100644 (file)
@@ -1745,8 +1745,8 @@ ieee_get_symbol_info (ignore_abfd, symbol, ret)
 }
 
 static void
-ieee_print_symbol (ignore_abfd, afile, symbol, how)
-     bfd *ignore_abfd ATTRIBUTE_UNUSED;
+ieee_print_symbol (abfd, afile, symbol, how)
+     bfd *abfd;
      PTR afile;
      asymbol *symbol;
      bfd_print_symbol_type how;
@@ -1777,7 +1777,7 @@ ieee_print_symbol (ignore_abfd, afile, symbol, how)
          }
        else
          {
-           bfd_print_symbol_vandf ((PTR) file, symbol);
+           bfd_print_symbol_vandf (abfd, (PTR) file, symbol);
 
            fprintf (file, " %-5s %04x %02x %s",
                     section_name,
index 04ba2a0281714d0ab7af7d3b64a725d4429f4b75..0dce9439f593577e7334e06094d1833ba9105002 100644 (file)
@@ -981,7 +981,7 @@ nlm_get_symbol_info (ignore_abfd, symbol, ret)
 
 void
 nlm_print_symbol (abfd, afile, symbol, how)
-     bfd *abfd ATTRIBUTE_UNUSED;
+     bfd *abfd;
      PTR afile;
      asymbol *symbol;
      bfd_print_symbol_type how;
@@ -996,7 +996,7 @@ nlm_print_symbol (abfd, afile, symbol, how)
        fprintf (file, "%s", symbol->name);
       break;
     case bfd_print_symbol_all:
-      bfd_print_symbol_vandf ((PTR) file, symbol);
+      bfd_print_symbol_vandf (abfd, (PTR) file, symbol);
       fprintf (file, " %-5s", symbol->section->name);
       if (symbol->name)
        fprintf (file, " %s", symbol->name);
index 0b2f88da68a539621d5382c45f3c3986c7d4a1fc..12cefc7362a39780c9f4410ae2022295e8f8e823 100644 (file)
@@ -517,8 +517,8 @@ oasys_get_symbol_info (ignore_abfd, symbol, ret)
 }
 
 static void
-oasys_print_symbol (ignore_abfd, afile, symbol, how)
-     bfd *ignore_abfd ATTRIBUTE_UNUSED;
+oasys_print_symbol (abfd, afile, symbol, how)
+     bfd *abfd;
      PTR afile;
      asymbol *symbol;
      bfd_print_symbol_type how;
@@ -536,7 +536,7 @@ oasys_print_symbol (ignore_abfd, afile, symbol, how)
        CONST char *section_name = symbol->section == (asection *) NULL ?
        (CONST char *) "*abs" : symbol->section->name;
 
-       bfd_print_symbol_vandf ((PTR) file, symbol);
+       bfd_print_symbol_vandf (abfd, (PTR) file, symbol);
 
        fprintf (file, " %-5s %s",
                 section_name,
index c7e9c3cea8c4349ef606426dc673feea4dc9931e..3b60b034be8b2a9cc7af1dd3193ed1e38fb3e1a5 100644 (file)
@@ -2461,7 +2461,7 @@ NAME(aout,get_symbol_info) (abfd, symbol, ret)
 /*ARGSUSED*/
 void
 NAME(aout,print_symbol) (abfd, afile, symbol, how)
-     bfd * abfd ATTRIBUTE_UNUSED;
+     bfd * abfd;
      PTR afile;
      asymbol *symbol;
      bfd_print_symbol_type how;
@@ -2483,7 +2483,7 @@ NAME(aout,print_symbol) (abfd, afile, symbol, how)
       {
        CONST char *section_name = symbol->section->name;
 
-       bfd_print_symbol_vandf ((PTR)file,symbol);
+       bfd_print_symbol_vandf (abfd, (PTR)file, symbol);
 
        fprintf (file," %-5s %04x %02x %02x",
                 section_name,
index f92b7a0aa7b90fb1a532eb4367447d7194af3814..1b877d5f26ddb5c49a31195fb78f5cb406432adb 100644 (file)
--- a/bfd/som.c
+++ b/bfd/som.c
@@ -4499,8 +4499,8 @@ som_make_empty_symbol (abfd)
 /* Print symbol information.  */
 
 static void
-som_print_symbol (ignore_abfd, afile, symbol, how)
-     bfd *ignore_abfd ATTRIBUTE_UNUSED;
+som_print_symbol (abfd, afile, symbol, how)
+     bfd *abfd;
      PTR afile;
      asymbol *symbol;
      bfd_print_symbol_type how;
@@ -4520,7 +4520,7 @@ som_print_symbol (ignore_abfd, afile, symbol, how)
       {
        CONST char *section_name;
        section_name = symbol->section ? symbol->section->name : "(*none*)";
-       bfd_print_symbol_vandf ((PTR) file, symbol);
+       bfd_print_symbol_vandf (abfd, (PTR) file, symbol);
        fprintf (file, " %s\t%s", section_name, symbol->name);
        break;
       }
index 43ac9a57c758c3a996ffcfbdf6df51e2eb63ad3f..5c6ef82dda1bb6e0dc65e087955dd13d86cbd990 100644 (file)
@@ -1217,8 +1217,8 @@ srec_get_symbol_info (ignore_abfd, symbol, ret)
 }
 
 static void
-srec_print_symbol (ignore_abfd, afile, symbol, how)
-     bfd *ignore_abfd ATTRIBUTE_UNUSED;
+srec_print_symbol (abfd, afile, symbol, how)
+     bfd *abfd;
      PTR afile;
      asymbol *symbol;
      bfd_print_symbol_type how;
@@ -1230,7 +1230,7 @@ srec_print_symbol (ignore_abfd, afile, symbol, how)
       fprintf (file, "%s", symbol->name);
       break;
     default:
-      bfd_print_symbol_vandf ((PTR) file, symbol);
+      bfd_print_symbol_vandf (abfd, (PTR) file, symbol);
       fprintf (file, " %-5s %s",
               symbol->section->name,
               symbol->name);
index 27303b1e0a9a599b766fb139dc12693202b50764..5d885a467aef99ac50ddd26bdfe6c3a1ddf47ec0 100644 (file)
@@ -433,14 +433,15 @@ FUNCTION
        bfd_print_symbol_vandf
 
 SYNOPSIS
-       void bfd_print_symbol_vandf(PTR file, asymbol *symbol);
+       void bfd_print_symbol_vandf(bfd *abfd, PTR file, asymbol *symbol);
 
 DESCRIPTION
        Print the value and flags of the @var{symbol} supplied to the
        stream @var{file}.
 */
 void
-bfd_print_symbol_vandf (arg, symbol)
+bfd_print_symbol_vandf (abfd, arg, symbol)
+     bfd *abfd;
      PTR arg;
      asymbol *symbol;
 {
@@ -448,11 +449,12 @@ bfd_print_symbol_vandf (arg, symbol)
   flagword type = symbol->flags;
   if (symbol->section != (asection *) NULL)
     {
-      fprintf_vma (file, symbol->value + symbol->section->vma);
+      bfd_fprintf_vma (abfd, file,
+                      symbol->value + symbol->section->vma);
     }
   else
     {
-      fprintf_vma (file, symbol->value);
+      bfd_fprintf_vma (abfd, file, symbol->value);
     }
 
   /* This presumes that a symbol can not be both BSF_DEBUGGING and
index 13ce00ebec47fa4489994c0f01e6484416b2dba4..943992bf766673ce5ea129ec51bb2dc12f665b38 100644 (file)
@@ -957,8 +957,8 @@ tekhex_get_symbol_info (ignore_abfd, symbol, ret)
 }
 
 static void
-tekhex_print_symbol (ignore_abfd, filep, symbol, how)
-     bfd *ignore_abfd ATTRIBUTE_UNUSED;
+tekhex_print_symbol (abfd, filep, symbol, how)
+     bfd *abfd;
      PTR filep;
      asymbol *symbol;
      bfd_print_symbol_type how;
@@ -977,7 +977,7 @@ tekhex_print_symbol (ignore_abfd, filep, symbol, how)
       {
        CONST char *section_name = symbol->section->name;
 
-       bfd_print_symbol_vandf ((PTR) file, symbol);
+       bfd_print_symbol_vandf (abfd, (PTR) file, symbol);
 
        fprintf (file, " %-5s %s",
                 section_name,
index e281d71b18efd142c51e5436025416716914abb5..b8d71e5539a9e5bfabecbaefe6fd97d88c454a49 100644 (file)
@@ -742,8 +742,8 @@ versados_get_symbol_info (ignore_abfd, symbol, ret)
 }
 
 void
-versados_print_symbol (ignore_abfd, afile, symbol, how)
-     bfd *ignore_abfd ATTRIBUTE_UNUSED;
+versados_print_symbol (abfd, afile, symbol, how)
+     bfd *abfd;
      PTR afile;
      asymbol *symbol;
      bfd_print_symbol_type how;
@@ -755,7 +755,7 @@ versados_print_symbol (ignore_abfd, afile, symbol, how)
       fprintf (file, "%s", symbol->name);
       break;
     default:
-      bfd_print_symbol_vandf ((PTR) file, symbol);
+      bfd_print_symbol_vandf (abfd, (PTR) file, symbol);
       fprintf (file, " %-5s %s",
               symbol->section->name,
               symbol->name);
index add9c2cebc3b24a28af3a27d994d26dac3c94283..78c31c2a6c48f50a347946cd9d0f83094ca58c77 100644 (file)
--- a/bfd/vms.c
+++ b/bfd/vms.c
@@ -1170,7 +1170,7 @@ _bfd_vms_make_empty_symbol (abfd)
 
 static void
 vms_print_symbol (abfd, file, symbol, how)
-     bfd *abfd ATTRIBUTE_UNUSED;
+     bfd *abfd;
      PTR file;
      asymbol *symbol;
      bfd_print_symbol_type how;
@@ -1190,7 +1190,7 @@ vms_print_symbol (abfd, file, symbol, how)
        {
          CONST char *section_name = symbol->section->name;
 
-         bfd_print_symbol_vandf((PTR)file,symbol);
+         bfd_print_symbol_vandf (abfd, (PTR)file, symbol);
 
          fprintf ((FILE *)file," %-8s %s", section_name, symbol->name);
         }