From ae9ac79e5e291a2bc5c6620a10c37a3558d55d36 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 30 May 2019 10:17:29 +0100 Subject: Harmonize readelf's output for version sections. PR 24627 binutils * readelf.c (process_version_sections): Add 0x prefix to address display. Correct indentation. ld * testsuite/ld-elf/ver_def.vd: Update expected output. --- binutils/ChangeLog | 6 ++++++ binutils/readelf.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'binutils') diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 76d9d52..04710e3 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2019-05-30 Nick Clifton + + PR 24627 + * readelf.c (process_version_sections): Add 0x prefix to address + display. Correct indentation. + 2019-05-30 Alan Modra * testsuite/lib/binutils-common.exp (supports_gnu_unique): Add diff --git a/binutils/readelf.c b/binutils/readelf.c index 2615e8b..cfa2df5 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -10550,7 +10550,7 @@ process_version_sections (Filedata * filedata) printable_section_name (filedata, section), section->sh_info); - printf (_(" Addr: 0x")); + printf (_(" Addr: 0x")); printf_vma (section->sh_addr); printf (_(" Offset: %#08lx Link: %u (%s)\n"), (unsigned long) section->sh_offset, section->sh_link, @@ -10842,7 +10842,7 @@ process_version_sections (Filedata * filedata) total), printable_section_name (filedata, section), (unsigned long) total); - printf (_(" Addr: ")); + printf (_(" Addr: 0x")); printf_vma (section->sh_addr); printf (_(" Offset: %#08lx Link: %u (%s)\n"), (unsigned long) section->sh_offset, section->sh_link, -- cgit v1.1