1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %s -o %t.o
2# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ret32.s -o %t.ret32.o
3# RUN: wasm-ld -pie --export-all --no-check-features --no-gc-sections --no-entry --emit-relocs -o %t.wasm %t.o %t.ret32.o
4# RUN: obj2yaml %t.wasm | FileCheck %s
5
6load_hidden_data:
7    .functype   load_hidden_data () -> (i32)
8    i32.const   .L.hidden_data@MBREL
9    end_function
10
11.section .rodata.hidden_data,"",@
12.L.hidden_data:
13    .int8 100
14    .size .L.hidden_data, 1
15
16# We just want to make sure that processing this relocation doesn't
17# cause corrupt output. We get most of the way there, by just checking
18# that obj2yaml doesn't fail. Here we just make sure that the relocation
19# survived the trip.
20# CHECK: R_WASM_MEMORY_ADDR_REL_SLEB
21