Harmonize readelf's output for version sections.
authorNick Clifton <nickc@redhat.com>
Thu, 30 May 2019 09:17:29 +0000 (10:17 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 30 May 2019 09:17:29 +0000 (10:17 +0100)
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
binutils/readelf.c
ld/ChangeLog
ld/testsuite/ld-elf/ver_def.vd

index 76d9d529d8b90f71e1b404118e5dbf9377ad8d3b..04710e3e1dece5cef4a1ee5c9e450e403674663b 100644 (file)
@@ -1,3 +1,9 @@
+2019-05-30  Nick Clifton  <nickc@redhat.com>
+
+       PR 24627
+       * readelf.c (process_version_sections): Add 0x prefix to address
+       display.  Correct indentation.
+
 2019-05-30  Alan Modra  <amodra@gmail.com>
 
        * testsuite/lib/binutils-common.exp (supports_gnu_unique): Add
index 2615e8bc87ec073c7c0632f3ebbdb8726e59fe21..cfa2df5614c656a393d2c3c69e80cd96391f216d 100644 (file)
@@ -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,
index f0f71784e084c1d85ca8c6e6c576d11068a35341..70e724152ba79e5ae3829557039061070e922ffb 100644 (file)
@@ -1,3 +1,8 @@
+2019-05-30  Nick Clifton  <nickc@redhat.com>
+
+       PR 24627
+       * testsuite/ld-elf/ver_def.vd: Update expected output.
+
 2019-05-30  Alan Modra  <amodra@gmail.com>
 
        PR 24596
index f75e15ec5ef83f162e03c0b3ece7e39bfea847d6..b2658ee3597e7e80c244e8e392a6390ec40dc535 100644 (file)
@@ -6,7 +6,7 @@
 # line at the end in particular (hence #pass must not be used here).
 
 Version symbols section '\.gnu\.version' contains 4 entries:
Addr: [0-9a-f]+ +Offset: 0x[0-9a-f]+ +Link: 2 \(\.dynsym\)
+Addr: 0x[0-9a-f]+ +Offset: 0x[0-9a-f]+ +Link: 2 \(\.dynsym\)
  +000: +0 \(\*local\*\) +2 \(ver_foo\) +1 \(\*global\*\) +2 \(ver_foo\) +
 
 Version definition section '\.gnu\.version_d' contains 2 entries: