21 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %s -o %t.o2# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ret32.s -o %t.ret32.o3# RUN: wasm-ld -pie --export-all --no-check-features --no-gc-sections --no-entry --emit-relocs -o %t.wasm %t.o %t.ret32.o4# RUN: obj2yaml %t.wasm | FileCheck %s5 6load_hidden_data:7 .functype load_hidden_data () -> (i32)8 i32.const .L.hidden_data@MBREL9 end_function10 11.section .rodata.hidden_data,"",@12.L.hidden_data:13 .int8 10014 .size .L.hidden_data, 115 16# We just want to make sure that processing this relocation doesn't17# cause corrupt output. We get most of the way there, by just checking18# that obj2yaml doesn't fail. Here we just make sure that the relocation19# survived the trip.20# CHECK: R_WASM_MEMORY_ADDR_REL_SLEB21