diff options
author | Nick Clifton <nickc@redhat.com> | 2019-05-30 10:17:29 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2019-05-30 10:17:29 +0100 |
commit | ae9ac79e5e291a2bc5c6620a10c37a3558d55d36 (patch) | |
tree | 406f4c6519b7213a2ec7d600bc9cbcb87cd2ef80 /binutils/readelf.c | |
parent | 54a471e5fd44d7a91297ece1383b0ad6d62c7306 (diff) | |
download | gdb-ae9ac79e5e291a2bc5c6620a10c37a3558d55d36.zip gdb-ae9ac79e5e291a2bc5c6620a10c37a3558d55d36.tar.gz gdb-ae9ac79e5e291a2bc5c6620a10c37a3558d55d36.tar.bz2 |
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.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, |