From: Adam Nemet Date: Fri, 21 Mar 2008 16:22:51 +0000 (+0000) Subject: * elf.c (_bfd_elf_print_private_bfd_data): Use bfd_fprintf_vma to X-Git-Tag: added-to-binutils~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a1f3c56ef7a08724229380e1b9a6c0bac46e19bf;p=external%2Fbinutils.git * elf.c (_bfd_elf_print_private_bfd_data): Use bfd_fprintf_vma to print the values from the dynamic section. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 333cd1f..37aaa38 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2008-03-21 Adam Nemet + + * elf.c (_bfd_elf_print_private_bfd_data): Use bfd_fprintf_vma to + print the values from the dynamic section. + 2008-03-20 Richard Sandiford * elfxx-mips.c (MIPS_ELF_GNU_GOT1_MASK): New macro. diff --git a/bfd/elf.c b/bfd/elf.c index 36515ce..f1019d6 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;