1 # RUN: yaml2obj %s -o %t.o
2 # RUN: llc -filetype=obj %S/Inputs/custom.ll -o %t2.o
3 # RUN: wasm-ld --no-entry -o - %t2.o %t.o | obj2yaml | FileCheck %s
4 # RUN: wasm-ld -r --no-entry -o - %t2.o %t.o | obj2yaml | FileCheck %s -check-prefix=RELOC
12 Payload: 'AA0000000000000000'
14 - Type: R_WASM_SECTION_OFFSET_I32
17 - Type: R_WASM_SECTION_OFFSET_I32
22 Payload: 'BB0000000000000000'
30 Flags: [ BINDING_LOCAL ]
34 Flags: [ BINDING_LOCAL ]
38 # CHECK-NEXT: Payload: 626172717578AA0600000003000000
40 # CHECK-NEXT: Payload: 666F6FBB0000000000000000
43 # RELOC-NEXT: - Type: R_WASM_SECTION_OFFSET_I32
44 # RELOC-NEXT: Index: 0
45 # RELOC-NEXT: Offset: 0x7
46 # RELOC-NEXT: Addend: 6
47 # RELOC-NEXT: - Type: R_WASM_SECTION_OFFSET_I32
48 # RELOC-NEXT: Index: 1
49 # RELOC-NEXT: Offset: 0xB
50 # RELOC-NEXT: Addend: 3
51 # RELOC-NEXT: Name: green
54 # RELOC-NEXT: - Index: 0
55 # RELOC-NEXT: Kind: SECTION
56 # RELOC-NEXT: Flags: [ BINDING_LOCAL ]
57 # RELOC-NEXT: Section: 1
58 # RELOC-NEXT: - Index: 1
59 # RELOC-NEXT: Kind: SECTION
60 # RELOC-NEXT: Flags: [ BINDING_LOCAL ]
61 # RELOC-NEXT: Section: 2