14 Commits

Author SHA1 Message Date
Sam Clegg
9f20a8a3c2
[WebAsembly] Build thread code (#22) 2017-11-15 15:58:02 -08:00
Sam Clegg
8116ebcd0c
[WebAssembly] Fix shared library loading (#17)
Loading of shared libraries was broken back in:
39fde60

This change restores the ability for shared libraries to
be loaded such that they can share memory and provide
function exports to the main executable.

However the executable that libraries still need to built
in a specific way (i.e. all importing the same sized memory)
and their static globals need to be in the different address
range. This has the complication that the executables won't
run the wasm spec interpreter (since it doesn't pass in a
memory to the executables it runs). So although I'm fixing this
here in the musl repo I'm also proposiing that we remove the
continuous testing of this configurations on the wasm waterfall
in favor of concentrating on the statically linking lld case:
WebAssembly/waterfall#271
2017-11-06 14:18:53 -08:00
Sam Clegg
f7a3ac80ec [WebAssembly] Allow weak symbols when build libc.a for wasm 2017-10-30 17:38:35 -07:00
Sam Clegg
a7161e9449 [WebAssembly] Exclude less in libc.py 2017-10-27 14:39:51 -07:00
Sam Clegg
012c04aa2b [WebAssembly] Remove existing library before creating it with 'ar' 2017-10-26 19:20:10 -07:00
Sam Clegg
2a59097dd1 Add support for building directly to wasm object files. 2017-06-09 16:24:23 -07:00
JF Bastien
d8b373a605 Keep musl.bc
It can be used for static linking.
2016-02-03 02:27:12 -08:00
JF Bastien
bbad041ac5 Don't build puts.c from musl
The JS one works, but C one needs syscalls to do anything useful.
2016-02-01 08:16:40 -08:00
JF Bastien
2118407451 Remove a few files from the blacklist
This properly generates musl.wast and musl.wasm using tip-of-tree LLVM, binaryen (with --ignore-unknown) and sexpr-wasm.
2016-01-30 08:16:03 -08:00
JF Bastien
0c46644853 No need for 'global' 2016-01-30 03:55:31 -08:00
JF Bastien
406cb2e6b5 Fix compile list in verbose mode. 2016-01-30 02:50:24 -08:00
JF Bastien
f878c5fc09 Allow saving temporary files. 2016-01-30 02:44:50 -08:00
JF Bastien
66ec565817 Remove regcomp: it makes LLVM sad with byval 2016-01-30 02:27:23 -08:00
JF Bastien
910f9e5300 Hacky libc build 2016-01-28 11:10:19 -08:00