You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2802: Feat/singlepass dylib r=ptitSeb a=ptitSeb
# Description
Enable Dylib+singlepass on Linux and macOS. Works fine, but larger wasm file may still fail to link on macOS/Aarch64.
For #2736
Co-authored-by: ptitSeb <[email protected]>
Hello, I'm trying to use engine-dylib together with the singlepass compiler.
Describe the bug
The simple wasm code in https://github.com/wasmerio/wasmer/blob/master/examples/engine_dylib.rs#L27 works fine, but when I tried to use some WASM code compiled from Rust instead, I noticed that this can in some cases fail in the linker with "ld: illegal text-relocation":
Concretely, it seems that the text-relocation is applied on code that uses function pointers.
Steps to reproduce
I've updated the example to demonstrate the issue with WASM code compiled from Rust code that uses a function pointer: heliaxdev@cb1833f
Expected behavior
The example should successfully load, compile and run the exported function (works on linux - returns
Results: [I32(23)]
).The text was updated successfully, but these errors were encountered: