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.
This commit is contained in:
parent
54a471e5fd
commit
ae9ac79e5e
4 changed files with 14 additions and 3 deletions
|
@ -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>
|
2019-05-30 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* testsuite/lib/binutils-common.exp (supports_gnu_unique): Add
|
* testsuite/lib/binutils-common.exp (supports_gnu_unique): Add
|
||||||
|
|
|
@ -10550,7 +10550,7 @@ process_version_sections (Filedata * filedata)
|
||||||
printable_section_name (filedata, section),
|
printable_section_name (filedata, section),
|
||||||
section->sh_info);
|
section->sh_info);
|
||||||
|
|
||||||
printf (_(" Addr: 0x"));
|
printf (_(" Addr: 0x"));
|
||||||
printf_vma (section->sh_addr);
|
printf_vma (section->sh_addr);
|
||||||
printf (_(" Offset: %#08lx Link: %u (%s)\n"),
|
printf (_(" Offset: %#08lx Link: %u (%s)\n"),
|
||||||
(unsigned long) section->sh_offset, section->sh_link,
|
(unsigned long) section->sh_offset, section->sh_link,
|
||||||
|
@ -10842,7 +10842,7 @@ process_version_sections (Filedata * filedata)
|
||||||
total),
|
total),
|
||||||
printable_section_name (filedata, section), (unsigned long) total);
|
printable_section_name (filedata, section), (unsigned long) total);
|
||||||
|
|
||||||
printf (_(" Addr: "));
|
printf (_(" Addr: 0x"));
|
||||||
printf_vma (section->sh_addr);
|
printf_vma (section->sh_addr);
|
||||||
printf (_(" Offset: %#08lx Link: %u (%s)\n"),
|
printf (_(" Offset: %#08lx Link: %u (%s)\n"),
|
||||||
(unsigned long) section->sh_offset, section->sh_link,
|
(unsigned long) section->sh_offset, section->sh_link,
|
||||||
|
|
|
@ -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>
|
2019-05-30 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
PR 24596
|
PR 24596
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
# line at the end in particular (hence #pass must not be used here).
|
# line at the end in particular (hence #pass must not be used here).
|
||||||
|
|
||||||
Version symbols section '\.gnu\.version' contains 4 entries:
|
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\) +
|
+000: +0 \(\*local\*\) +2 \(ver_foo\) +1 \(\*global\*\) +2 \(ver_foo\) +
|
||||||
|
|
||||||
Version definition section '\.gnu\.version_d' contains 2 entries:
|
Version definition section '\.gnu\.version_d' contains 2 entries:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue