[lld] r374795 - [llvm-objdump] Adjust spacing and field width for --section-headers
Jordan Rupprecht via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 14 10:47:18 PDT 2019
Author: rupprecht
Date: Mon Oct 14 10:47:17 2019
New Revision: 374795
URL: http://llvm.org/viewvc/llvm-project?rev=374795&view=rev
Log:
[llvm-objdump] Adjust spacing and field width for --section-headers
Summary:
- Expand the "Name" column past 13 characters when any of the section names are longer. Current behavior is a staggard output instead of a nice table if a single name is longer.
- Only print the required number of hex chars for addresses (i.e. 8 characters for 32-bit, 16 characters for 64-bit)
- Fix trailing spaces
Reviewers: grimar, jhenderson, espindola
Reviewed By: grimar
Subscribers: emaste, sbc100, arichardson, aheejin, seiya, llvm-commits, MaskRay
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D68730
Modified:
lld/trunk/test/ELF/got32-i386.s
lld/trunk/test/ELF/got32x-i386.s
Modified: lld/trunk/test/ELF/got32-i386.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/got32-i386.s?rev=374795&r1=374794&r2=374795&view=diff
==============================================================================
--- lld/trunk/test/ELF/got32-i386.s (original)
+++ lld/trunk/test/ELF/got32-i386.s Mon Oct 14 10:47:17 2019
@@ -15,7 +15,7 @@ _start:
## 73728 == 0x12000 == ADDR(.got)
# CHECK: Sections:
# CHECK: Name Size VMA
-# CHECK: .got 00000004 00000000004020fc
+# CHECK: .got 00000004 004020fc
# CHECK: _start:
# CHECK-NEXT: 4010f5: 8b 1d {{.*}} movl 4202748, %ebx
Modified: lld/trunk/test/ELF/got32x-i386.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/got32x-i386.s?rev=374795&r1=374794&r2=374795&view=diff
==============================================================================
--- lld/trunk/test/ELF/got32x-i386.s (original)
+++ lld/trunk/test/ELF/got32x-i386.s Mon Oct 14 10:47:17 2019
@@ -33,8 +33,8 @@
## 73728 == 0x12000 == ADDR(.got)
# CHECK: Sections:
-# CHECK: Name Size VMA
-# CHECK: .got.plt 0000000c 0000000000403134
+# CHECK: Name Size VMA
+# CHECK: .got.plt 0000000c 00403134
# CHECK: _start:
# CHECK-NEXT: 401115: 8b 05 {{.*}} movl 4202800, %eax
# CHECK-NEXT: 40111b: 8b 1d {{.*}} movl 4202800, %ebx
More information about the llvm-commits
mailing list