summaryrefslogtreecommitdiff
path: root/bfd/coffgen.c
diff options
context:
space:
mode:
authorDave Korn <dave.korn@artimi.com>2009-05-21 12:52:37 +0000
committerDave Korn <dave.korn@artimi.com>2009-05-21 12:52:37 +0000
commit88bf10c1f03c7eca3d2d0241e2835b691d0f7d5a (patch)
treee85ee5b1120744f4cbbf9be29b22c036537c5645 /bfd/coffgen.c
parent334ab58fe7a6c509f4b486b426bbd9721a53629b (diff)
downloadbinutils-redhat-88bf10c1f03c7eca3d2d0241e2835b691d0f7d5a.tar.gz
* coffgen.c (coff_print_symbol): Use bfd_fprintf_vma, not
fprintf_vma directly. * peXXigen.c (pe_print_edata): Likewise. (pe_print_pdata): Likewise. (_bfd_XX_print_ce_compressed_pdata): Likewise. (_bfd_XX_print_private_bfd_data_common): Likewise.
Diffstat (limited to 'bfd/coffgen.c')
-rw-r--r--bfd/coffgen.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/bfd/coffgen.c b/bfd/coffgen.c
index 8781557e99..a52f75a757 100644
--- a/bfd/coffgen.c
+++ b/bfd/coffgen.c
@@ -1959,16 +1959,7 @@ coff_print_symbol (bfd *abfd,
combined->u.syment.n_type,
combined->u.syment.n_sclass,
combined->u.syment.n_numaux);
-#ifdef BFD64
- /* fprintf_vma() on a 64-bit enabled host will always print a 64-bit
- value, but really we want to display the address in the target's
- address size. Since we do not have a field in the bfd structure
- to tell us this, we take a guess, based on the target's name. */
- if (strstr (bfd_get_target (abfd), "64") == NULL)
- fprintf (file, "%08lx", (unsigned long) (val & 0xffffffff));
- else
-#endif
- fprintf_vma (file, val);
+ bfd_fprintf_vma (abfd, file, val);
fprintf (file, " %s", symbol->name);
for (aux = 0; aux < combined->u.syment.n_numaux; aux++)
@@ -2051,7 +2042,7 @@ coff_print_symbol (bfd *abfd,
while (l->line_number)
{
fprintf (file, "\n%4d : ", l->line_number);
- fprintf_vma (file, l->u.offset + symbol->section->vma);
+ bfd_fprintf_vma (abfd, file, l->u.offset + symbol->section->vma);
l++;
}
}