Open
Description
These symbols are in libstandalonewasm.a :
llvm-nm E:\GitHub\emsdk\upstream\emscripten\cache\wasm\libstandalonewasm.a
standalone.o:
00000000 d .L.str
0000000b d .L.str.1
00000017 d .L.str.2
00000001 T _Exit
0000016c T __cxa_allocate_exception
00000162 T __cxa_throw
000000a1 T __map_file
U __stack_pointer
000000ab T __syscall192
000000f7 T __syscall221
000000b0 T __syscall5
000000f2 T __syscall54
000000a6 T __syscall91
syscall192 and syscall91, and they are just stubs
emscripten/system/lib/standalone/standalone.c
Lines 66 to 73 in 38485ce
I want to provide my own implementation of these. Is that possible? Currently when mine are linked in wasm-ld fails with duplicate symbol errors and ld
's --allow-multiple-definition
is not supported:
wasm-ld: error: duplicate symbol: __syscall91
>>> defined in wasi.o
>>> defined in E:\GitHub\emsdk\upstream\emscripten\cache\wasm\libstandalonewasm.a(standalone.o)
wasm-ld: error: duplicate symbol: __syscall192
>>> defined in wasi.o
>>> defined in E:\GitHub\emsdk\upstream\emscripten\cache\wasm\libstandalonewasm.a(standalone.o)
Metadata
Metadata
Assignees
Labels
No labels