1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/tools/llvm-objdump/wasm.txt
Jordan Rupprecht e25ab5d91b [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

llvm-svn: 374795
2019-10-14 17:47:17 +00:00

24 lines
1.0 KiB
Plaintext

# RUN: llvm-objdump -h %p/Inputs/trivial.obj.wasm | FileCheck %s
# CHECK: Sections:
# CHECK-NEXT: Idx Name Size VMA Type
# CHECK-NEXT: 0 TYPE 00000011 00000000
# CHECK-NEXT: 1 IMPORT 0000005d 00000000
# CHECK-NEXT: 2 FUNCTION 00000003 00000000
# CHECK-NEXT: 3 CODE 00000024 00000000 TEXT
# CHECK-NEXT: 4 DATA 0000001c 00000000 DATA
# CHECK-NEXT: 5 linking 0000006d 00000000
# CHECK-NEXT: 6 reloc.CODE 0000000f 00000000
# RUN: llvm-objdump -p %p/Inputs/trivial.obj.wasm | FileCheck %s -check-prefix CHECK-HEADER
# CHECK-HEADER: Program Header:
# CHECK-HEADER: Version: 0x1
# RUN: llvm-objdump -s --section=CODE %p/Inputs/trivial.obj.wasm | FileCheck %s -check-prefix CHECK-SECTIONS
# CHECK-SECTIONS: Contents of section CODE:
# CHECK-SECTIONS: 0000 02170041 80808080 00108080 8080001a ...A............
# CHECK-SECTIONS: 0010 10838080 80004100 0b0a0041 00108180 ......A....A....
# CHECK-SECTIONS: 0020 8080000b ....