aboutsummaryrefslogtreecommitdiff
path: root/binutils/nm.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-08-10 16:43:18 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-08-10 16:43:18 +0000
commitd8180c76ad59975d1ae5b0129cf39e09d2590d5e (patch)
tree92e0679020df2a70ba15d4caef4ba772bd9b6a8d /binutils/nm.c
parent5c36c02b3bdd0ead453ceacd01062d153bcb9545 (diff)
downloadgdb-d8180c76ad59975d1ae5b0129cf39e09d2590d5e.zip
gdb-d8180c76ad59975d1ae5b0129cf39e09d2590d5e.tar.gz
gdb-d8180c76ad59975d1ae5b0129cf39e09d2590d5e.tar.bz2
2001-08-10 H.J. Lu <hjl@gnu.org>
* nm.c (print_value): Add one arg, bfd *. (print_value): Replace fprintf_vma with bfd_fprintf_vma. (print_symbol_info_bsd): Also pass `abfd' to print_value (). (print_symbol_info_sysv): Likewise. (print_symbol_info_posix): Likewise. * objdump.c (dump_section_header): Replace printf_vma with bfd_printf_vma. (print_section_stabs): Likewise. (dump_bfd_header): Likewise. (objdump_print_value): Replace sprintf_vma with bfd_sprintf_vma. (disassemble_bytes): Likewise. (dump_reloc_set): Likewise.
Diffstat (limited to 'binutils/nm.c')
-rw-r--r--binutils/nm.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/binutils/nm.c b/binutils/nm.c
index 7928375..3c5ca54 100644
--- a/binutils/nm.c
+++ b/binutils/nm.c
@@ -152,7 +152,7 @@ print_symbol_filename_posix PARAMS ((bfd * archive_bfd, bfd * abfd));
static void
-print_value PARAMS ((bfd_vma));
+print_value PARAMS ((bfd *, bfd_vma));
static void
print_symbol_info_bsd PARAMS ((symbol_info * info, bfd * abfd));
@@ -1437,7 +1437,8 @@ print_symbol_filename_posix (archive_bfd, abfd)
/* Print a symbol value. */
static void
-print_value (val)
+print_value (abfd, val)
+ bfd *abfd;
bfd_vma val;
{
#if ! defined (BFD64) || BFD_HOST_64BIT_LONG
@@ -1445,7 +1446,7 @@ print_value (val)
#else
/* We have a 64 bit value to print, but the host is only 32 bit. */
if (print_radix == 16)
- fprintf_vma (stdout, val);
+ bfd_fprintf_vma (abfd, stdout, val);
else
{
char buf[30];
@@ -1480,7 +1481,7 @@ print_symbol_info_bsd (info, abfd)
printf (" ");
}
else
- print_value (info->value);
+ print_value (abfd, info->value);
printf (" %c", info->type);
if (info->type == '-')
{
@@ -1503,7 +1504,7 @@ print_symbol_info_sysv (info, abfd)
if (bfd_is_undefined_symclass (info->type))
printf (" "); /* Value */
else
- print_value (info->value);
+ print_value (abfd, info->value);
printf ("| %c |", info->type); /* Class */
if (info->type == '-')
{
@@ -1526,7 +1527,7 @@ print_symbol_info_posix (info, abfd)
if (bfd_is_undefined_symclass (info->type))
printf (" ");
else
- print_value (info->value);
+ print_value (abfd, info->value);
/* POSIX.2 wants the symbol size printed here, when applicable;
BFD currently doesn't provide it, so we take the easy way out by
considering it to never be applicable. */