Date: Tue, 28 Nov 2017 18:52:22 +0100 From: Szabolcs Nagy <nsz@...t70.net> To: musl@...ts.openwall.com Subject: Re: [PATCH] Wasm support patch 2 (static syscalls) * John Starks <John.Starks@...rosoft.com> [2017-11-28 16:51:19 +0000]: > What if you redefine the syscall numbers in wasm to be function pointers to the actual syscalls, e.g. #define SYS_unlink ((long)&__syscall_unlink). Then __syscall and friends can just apply the arguments to the function pointer. This should play nice with the linker and probably optimizes well. you have to be able to cast it to the right type of function pointer then and pass the right amount of arguments.
Powered by blists - more mailing lists
Powered by Openwall GNU/*/Linux - Powered by OpenVZ