diff options
author | Adam Nemet <anemet@caviumnetworks.com> | 2008-03-21 16:22:51 +0000 |
---|---|---|
committer | Adam Nemet <anemet@caviumnetworks.com> | 2008-03-21 16:22:51 +0000 |
commit | 54e0e11fd1cb7aff8eb96b05933a8cf7372cd77b (patch) | |
tree | 49dcb8df8a2a910a94bd2acfaa22cc544887e6ab /bfd/elf.c | |
parent | afa3b2ec9ddedef1a8cbed69b25f1d29b12ac936 (diff) | |
download | gdb-54e0e11fd1cb7aff8eb96b05933a8cf7372cd77b.tar.gz |
* elf.c (_bfd_elf_print_private_bfd_data): Use bfd_fprintf_vma to
print the values from the dynamic section.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/elf.c b/bfd/elf.c index 36515ce35b7..f1019d6b449 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -1293,7 +1293,10 @@ _bfd_elf_print_private_bfd_data (bfd *abfd, void *farg) fprintf (f, " %-20s ", name); if (! stringp) - fprintf (f, "0x%lx", (unsigned long) dyn.d_un.d_val); + { + fprintf (f, "0x"); + bfd_fprintf_vma (abfd, f, dyn.d_un.d_val); + } else { const char *string; |