1 # RUN: yaml2obj %s -o %t.o
2 # RUN: wasm-ld --shared-memory -o %t.wasm %t.o
4 # Verify compatability with older object files that didn't mark individual
5 # symbols as TLS. In this case the symbol `bar` is being used in a TLS-only
6 # relocation (R_WASM_MEMORY_ADDR_TLS_SLEB) but is not itself marked as TLS.
7 # However, because it is defined in a section (`.mydata`) that *is* marked as
8 # TLS we implicitly mark bar as TLS.
10 # We had a regression where llvm-13-generated object files were being rejected
11 # with: "R_WASM_MEMORY_ADDR_TLS_SLEB cannot be used against non-TLS symbol"
12 # This test verifies that this error is not triggered.
26 Field: __linear_memory
36 - Type: R_WASM_MEMORY_ADDR_TLS_SLEB
42 Body: 4180808080001A0B