brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · a96aa1f Raw
62 lines · yaml
1# RUN: yaml2obj %s | llvm-objdump -s - | FileCheck %s2 3# This is a regression test for an issue with the section order4# checker being overly strict. yaml2obj places the relocations last,5# but the section order checker previously checked that relocations6# came before the producers section, which would cause this test to7# fail.8 9# CHECK: Contents of section producers:10# CHECK: Contents of section reloc.CODE:11 12--- !WASM13FileHeader:14  Version:         0x0000000115Sections:16  - Type:            TYPE17    Signatures:18      - Index:           019        ParamTypes:      []20        ReturnTypes:     []21  - Type:            IMPORT22    Imports:23      - Module:          env24        Field:           __linear_memory25        Kind:            MEMORY26        Memory:27          Minimum:         0x0000000028      - Module:          env29        Field:           __indirect_function_table30        Kind:            TABLE31        Table:32          Index:           033          ElemType:        FUNCREF34          Limits:35            Minimum:         0x0000000036  - Type:            FUNCTION37    FunctionTypes:   [ 0 ]38  - Type:            CODE39    Relocations:40      - Type:            R_WASM_FUNCTION_INDEX_LEB41        Index:           042        Offset:          0x0000000443    Functions:44      - Index:           045        Locals:          []46        Body:            1080808080000B47  - Type:            CUSTOM48    Name:            linking49    Version:         250    SymbolTable:51      - Index:           052        Kind:            FUNCTION53        Name:            foo54        Flags:           [ VISIBILITY_HIDDEN ]55        Function:        056  - Type:            CUSTOM57    Name:            producers58    Tools:59      - Name:            clang60        Version:         9.0.061...62