forked from OSchip/llvm-project
28 lines
1.3 KiB
Plaintext
28 lines
1.3 KiB
Plaintext
# 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 00000024 0000000000000000
|
|
# CHECK-NEXT: 2 FUNCTION 00000002 0000000000000000
|
|
# CHECK-NEXT: 3 TABLE 00000004 0000000000000000
|
|
# CHECK-NEXT: 4 MEMORY 00000003 0000000000000000
|
|
# CHECK-NEXT: 5 GLOBAL 0000000b 0000000000000000
|
|
# CHECK-NEXT: 6 EXPORT 0000000e 0000000000000000
|
|
# CHECK-NEXT: 7 CODE 00000019 0000000000000000 TEXT
|
|
# CHECK-NEXT: 8 DATA 0000001a 0000000000000000 DATA
|
|
# CHECK-NEXT: 9 name 0000002b 0000000000000000
|
|
# CHECK-NEXT: 10 reloc.CODE 00000017 0000000000000000
|
|
# CHECK-NEXT: 11 linking 00000016 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..
|