2017-07-10 22:43:26 +02:00
|
|
|
# RUN: llvm-objdump -h %p/Inputs/trivial.obj.wasm | FileCheck %s
|
2016-11-30 17:49:11 +01:00
|
|
|
|
2017-07-10 22:43:26 +02:00
|
|
|
# CHECK: Sections:
|
2019-10-14 19:47:17 +02:00
|
|
|
# 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
|
2016-11-30 17:49:11 +01:00
|
|
|
|
2017-07-10 22:43:26 +02:00
|
|
|
# RUN: llvm-objdump -p %p/Inputs/trivial.obj.wasm | FileCheck %s -check-prefix CHECK-HEADER
|
2016-11-30 17:49:11 +01:00
|
|
|
|
|
|
|
# CHECK-HEADER: Program Header:
|
2017-02-22 21:24:16 +01:00
|
|
|
# CHECK-HEADER: Version: 0x1
|
2016-11-30 17:49:11 +01:00
|
|
|
|
2017-07-10 22:43:26 +02:00
|
|
|
# RUN: llvm-objdump -s --section=CODE %p/Inputs/trivial.obj.wasm | FileCheck %s -check-prefix CHECK-SECTIONS
|
2016-11-30 17:49:11 +01:00
|
|
|
|
|
|
|
# CHECK-SECTIONS: Contents of section CODE:
|
2018-11-07 02:58:50 +01:00
|
|
|
# CHECK-SECTIONS: 0000 02170041 80808080 00108080 8080001a ...A............
|
|
|
|
# CHECK-SECTIONS: 0010 10838080 80004100 0b0a0041 00108180 ......A....A....
|
|
|
|
# CHECK-SECTIONS: 0020 8080000b ....
|