brintos

brintos / llvm-project-archived public Read only

0
0
Text · 988 B · aed405c Raw
36 lines · yaml
1# RUN: yaml2obj %s | not llvm-objdump -s - 2>&1 | FileCheck %s2 3# Check for invalid relocations.  In this case we have a relocations of type4# R_WASM_FUNCTION_INDEX_LEB against a symbol (foo) which is not a function5# symbol but a data symbol.6 7# CHECK: invalid function relocation: foo8 9--- !WASM10FileHeader:11  Version:         0x0000000112Sections:13  - Type:            DATA14    Segments:15      - SectionOffset:   016        InitFlags:       017        Offset:18          Opcode:          I32_CONST19          Value:           020        Content:         '6401020304'21    Relocations:22      - Type:            R_WASM_FUNCTION_INDEX_LEB23        Index:           024        Offset:          0x0000000025  - Type:            CUSTOM26    Name:            linking27    Version:         228    SymbolTable:29      - Index:           030        Kind:            DATA31        Name:            foo32        Flags:           [ ]33        Segment:         034        Offset:          035        Size:            136