This finishes adding RPATH support for WebAssembly. See my previous PR which added RPATH support to yaml2obj and obj2yaml: https://github.com/llvm/llvm-project/pull/126080 See corresponding update to the WebAssembly/tool-conventions repo on dynamic linking: https://github.com/WebAssembly/tool-conventions/pull/246
15 lines
549 B
ArmAsm
15 lines
549 B
ArmAsm
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s
|
|
# RUN: wasm-ld -shared -o %t1.wasm %t.o -rpath /a/b/c -rpath /x/y/z --experimental-pic
|
|
# RUN: obj2yaml %t1.wasm | FileCheck %s
|
|
|
|
# CHECK: - Type: CUSTOM
|
|
# CHECK-NEXT: Name: dylink.0
|
|
# CHECK-NEXT: MemorySize: 0
|
|
# CHECK-NEXT: MemoryAlignment: 0
|
|
# CHECK-NEXT: TableSize: 0
|
|
# CHECK-NEXT: TableAlignment: 0
|
|
# CHECK-NEXT: Needed: []
|
|
# CHECK-NEXT: RuntimePath:
|
|
# CHECK-NEXT: - '/a/b/c'
|
|
# CHECK-NEXT: - '/x/y/z'
|