brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.1 KiB · 050aaa6 Raw
62 lines · yaml
1# RUN: yaml2obj %s -o %t.o2# RUN: llc -filetype=obj  %S/Inputs/custom.ll -o %t2.o3# RUN: wasm-ld --no-entry -o - %t2.o %t.o | obj2yaml | FileCheck %s4# RUN: wasm-ld -r --no-entry -o - %t2.o %t.o | obj2yaml | FileCheck %s -check-prefix=RELOC5 6--- !WASM7FileHeader:8  Version:         0x000000019Sections:10  - Type:            CUSTOM11    Name:            green12    Payload:         'AA0000000000000000'13    Relocations:14      - Type:            R_WASM_SECTION_OFFSET_I3215        Index:           016        Offset:          0x0000000117      - Type:            R_WASM_SECTION_OFFSET_I3218        Index:           119        Offset:          0x0000000520  - Type:            CUSTOM21    Name:            red22    Payload:         'BB0000000000000000'23  - Type:            CUSTOM24    Name:            linking25    Version:         226    SymbolTable:27      - Index:           028        Kind:            SECTION29        Section:         030        Flags:           [ BINDING_LOCAL ]31      - Index:           132        Kind:            SECTION33        Section:         134        Flags:           [ BINDING_LOCAL ]35...36 37# CHECK:        Name:            red38# CHECK-NEXT:   Payload:         666F6FBB000000000000000039# CHECK:        Name:            green40# CHECK-NEXT:   Payload:         626172717578AA060000000300000041 42# RELOC:        Relocations:43# RELOC-NEXT:       - Type:            R_WASM_SECTION_OFFSET_I3244# RELOC-NEXT:         Index:           145# RELOC-NEXT:         Offset:          0x746# RELOC-NEXT:         Addend:          647# RELOC-NEXT:       - Type:            R_WASM_SECTION_OFFSET_I3248# RELOC-NEXT:         Index:           049# RELOC-NEXT:         Offset:          0xB50# RELOC-NEXT:         Addend:          351# RELOC-NEXT:    Name:            green52#53# RELOC:        SymbolTable:54# RELOC-NEXT:     - Index:           055# RELOC-NEXT:       Kind:            SECTION56# RELOC-NEXT:       Flags:           [ BINDING_LOCAL ]57# RELOC-NEXT:       Section:         158# RELOC-NEXT:     - Index:           159# RELOC-NEXT:       Kind:            SECTION60# RELOC-NEXT:       Flags:           [ BINDING_LOCAL ]61# RELOC-NEXT:       Section:         262