| # RUN: llvm-objdump -h %p/Inputs/trivial.obj.wasm | FileCheck %s |
| |
| # CHECK: Sections: |
| # CHECK-NEXT: Idx Name Size Address Type |
| # CHECK-NEXT: 0 TYPE 0000000e 0000000000000000 |
| # CHECK-NEXT: 1 IMPORT 0000005d 0000000000000000 |
| # CHECK-NEXT: 2 FUNCTION 00000002 0000000000000000 |
| # CHECK-NEXT: 3 CODE 00000019 0000000000000000 TEXT |
| # CHECK-NEXT: 4 DATA 0000001c 0000000000000000 DATA |
| # CHECK-NEXT: 5 linking 00000051 0000000000000000 |
| # CHECK-NEXT: 6 reloc.CODE 0000000c 0000000000000000 |
| |
| # 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 01170041 80808080 00108080 8080001a ...A............ |
| # CHECK-SECTIONS: 0010 10818080 80004100 0b ......A.. |