Use fprintf_vma to print vma values.
authorNick Clifton <nickc@redhat.com>
Fri, 15 Apr 2005 11:47:47 +0000 (11:47 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 15 Apr 2005 11:47:47 +0000 (11:47 +0000)
bfd/ChangeLog
bfd/coffgen.c

index 84405e1c39697527def9911ab7ab330cad618866..35ac02d4b8217dd65762f2aa4a20951c847b1163 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-15  Nick Clifton  <nickc@redhat.com>
+
+       * coffgen.c (coff_print_symbol): Use fprintf_vma to print vma
+       values.
+
 2005-04-15  Alan Modra  <amodra@bigpond.net.au>
 
        PR ld/815
index d303beceb98023b1a18a86567aae533af2d3258b..b60a96fccfc8c3081fe0253080e593f6295b3bf8 100644 (file)
@@ -1895,28 +1895,14 @@ coff_print_symbol (bfd *abfd,
          else
            val = combined->u.syment.n_value - (unsigned long) root;
 
-#ifndef XCOFF64
-         fprintf (file,
-                  "(sec %2d)(fl 0x%02x)(ty %3x)(scl %3d) (nx %d) 0x%08lx %s",
+         fprintf (file, "(sec %2d)(fl 0x%02x)(ty %3x)(scl %3d) (nx %d)",
                   combined->u.syment.n_scnum,
                   combined->u.syment.n_flags,
                   combined->u.syment.n_type,
                   combined->u.syment.n_sclass,
-                  combined->u.syment.n_numaux,
-                  (unsigned long) val,
-                  symbol->name);
-#else
-         /* Print out the wide, 64 bit, symbol value.  */
-         fprintf (file,
-                  "(sec %2d)(fl 0x%02x)(ty %3x)(scl %3d) (nx %d) 0x%016llx %s",
-                  combined->u.syment.n_scnum,
-                  combined->u.syment.n_flags,
-                  combined->u.syment.n_type,
-                  combined->u.syment.n_sclass,
-                  combined->u.syment.n_numaux,
-                  val,
-                  symbol->name);
-#endif
+                  combined->u.syment.n_numaux);
+         fprintf_vma (file, val);
+         fprintf (file, " %s", symbol->name);
 
          for (aux = 0; aux < combined->u.syment.n_numaux; aux++)
            {
@@ -1995,10 +1981,8 @@ coff_print_symbol (bfd *abfd,
              l++;
              while (l->line_number)
                {
-                 fprintf (file, "\n%4d : 0x%lx",
-                          l->line_number,
-                          ((unsigned long)
-                           (l->u.offset + symbol->section->vma)));
+                 fprintf (file, "\n%4d : ", l->line_number);
+                 fprintf_vma (file, l->u.offset + symbol->section->vma);
                  l++;
                }
            }