Sam Clegg
b7d5c4aaea
typo
2017-11-06 14:16:41 -08:00
Sam Clegg
7f8a7545cd
Merge remote-tracking branch 'origin/wasm-prototype-1' into enable_shared_libs
2017-11-06 11:28:01 -08:00
JF Bastien
dafacbdab0
Merge pull request #20 from jfbastien/strchr
...
[WebAssembly] Fix bug in wasm.js version of strchr
2017-11-05 15:14:32 -08:00
Sam Clegg
e7fb361e60
[WebAssembly] Fix bug in wasm.js version of strchr
2017-11-03 17:46:28 -07:00
Sam Clegg
26774d0b17
fixes
2017-11-03 16:32:03 -07:00
Sam Clegg
857ceeb10a
Have wasm.js create fixed size memory and export it to all modules
...
Build must.wasm such that it imports the same size (16Mb)
memory.
This re-enables the pseudo-dynamic linking abilities of wasm.js
2017-11-03 15:28:24 -07:00
Sam Clegg
3458d4e67b
[WebAssembly] Fix shared library loading
...
The ffi mapping was not being correctly populated
Fixing this actaully causes a lot more failures
on the waterfall because we don't currently share
memory between the modules.
2017-11-03 09:44:07 -07:00
JF Bastien
c6232b8dc2
Merge pull request #18 from sbc100/build_init
...
[WebAssembly] Allow weak symbols when building libc.a for wasm
2017-11-02 15:50:16 -07:00
Sam Clegg
f7a3ac80ec
[WebAssembly] Allow weak symbols when build libc.a for wasm
2017-10-30 17:38:35 -07:00
Sam Clegg
319abd03d4
Add --dump-ffi-symbols argument to wasm.js ( #5 )
...
This allows a list of all symbols exports by wasm.js to be
generated which is usefull for passing to my prototype of
lld which takes an --allow-undefined-symbols=<filename>
argument.
2017-10-30 17:37:48 -07:00
JF Bastien
b99a1f3ec9
Merge pull request #14 from sbc100/build_more
...
[WebAssembly] Build more of musl with libc.py
2017-10-27 17:00:29 -07:00
Sam Clegg
a7161e9449
[WebAssembly] Exclude less in libc.py
2017-10-27 14:39:51 -07:00
JF Bastien
0aad8ad1e7
Merge pull request #16 from sbc100/remove_lib
...
[WebAssembly] Remove existing library before creating it with 'ar'
2017-10-26 21:23:45 -07:00
Sam Clegg
012c04aa2b
[WebAssembly] Remove existing library before creating it with 'ar'
2017-10-26 19:20:10 -07:00
JF Bastien
46cf4c8640
Merge pull request #11 from sbc100/add_letf2
...
[WebAssembly] Add llvm builting '__letf2' to wasm.js
2017-10-20 16:46:44 -07:00
JF Bastien
a70eb07ccb
Merge pull request #12 from sbc100/alltypes
...
[WebAssembly] Updaet alltypes.h.in
2017-10-20 16:46:33 -07:00
JF Bastien
da23f3c611
Merge pull request #13 from sbc100/fix_make_install
...
[WebAssembly] Fix 'make install'
2017-10-20 16:46:15 -07:00
Sam Clegg
96aea19aae
[WebAssembly] Updaet alltypes.h.in
2017-10-20 16:21:39 -07:00
Sam Clegg
6caecad2bc
[WebAssembly] Fix 'make install'
2017-10-20 16:06:38 -07:00
Sam Clegg
addf7f9215
[WebAssembly] Add llvm builting '__letf2' to wasm.js
2017-10-20 13:33:55 -07:00
JF Bastien
47c33a50c1
Merge pull request #10 from sbc100/enable_wasm_make
...
[WebAssembly] Enable building with 'make' command
2017-10-19 18:44:01 -07:00
Sam Clegg
94500fb127
[WebAssembly] Enable building with 'make' command
...
This change enables all of the .c sources in musl
be built with the clang -target wasm32-unknown-unknown-wasm
2017-10-19 17:42:50 -07:00
JF Bastien
357305e18f
Merge pull request #8 from aheejin/strlib_bugfix
...
Fix bugs in strcmp/strncmp/strchr
2017-08-22 16:30:20 -07:00
Heejin Ahn
30930bef22
Fix bugs in strcmp/strncmp/strchr
...
Added strcmp/strncmp implementations that follow the libc spec, and
fixed a bug in strchr. This makes a couple more tests pass in Wasm
waterfall.
2017-08-22 15:46:51 -07:00
JF Bastien
30965616cd
Merge pull request #6 from sbc100/build_native
...
Add support for building directly to wasm object files.
2017-06-10 10:25:52 -07:00
Sam Clegg
2a59097dd1
Add support for building directly to wasm object files.
2017-06-09 16:24:23 -07:00
JF Bastien
128cf2eece
Use read if readbuffer is unavailable
2017-01-02 15:10:34 -08:00
JF Bastien
e236cd08cb
Merge pull request #4 from dschuff/wasm-api
...
Update wasm.js loader to use new WebAssembly JS API
2016-10-26 13:57:25 -07:00
Derek Schuff
39fde6042e
Update wasm.js loader to use new WebAssembly JS API
2016-10-26 13:34:58 -07:00
Derek Schuff
2a717f2d43
Add __stdio_write and __stdout_write to musl_hack list of imports
...
They are now imported because they are address-taken
2016-07-14 09:11:35 -07:00
Derek Schuff
6ececfed67
Merge pull request #3 from WebAssembly/env_ffi
...
Update wasm.js for v8's change to 2-level FFI namespace
2016-03-08 15:36:59 -08:00
Derek Schuff
cff987a27b
Update wasm.js for v8's change to 2-level FFI namespace
2016-03-08 15:30:28 -08:00
Derek Schuff
cd50df76d4
Use the new exports table on the wasm module object
2016-02-29 13:45:25 -08:00
Derek Schuff
3f4c233ac0
Use 16MB for the linear memory array buffer
...
Some of the torture tests use big stacks, and 16 is enough larger than 2.
2016-02-18 15:35:14 -08:00
JF Bastien
1648814783
Add clrsbl clrsbll as well
2016-02-14 14:08:20 -08:00
JF Bastien
49dbb74456
Add __builtin_clrsb as NYI
...
builtin-bitops-1.c now hits it.
2016-02-13 13:57:29 -08:00
JF Bastien
968d8d2158
Improve trap handling, fix isspace.
2016-02-03 08:30:55 -08:00
JF Bastien
7f1742a8c3
Fix reference error.
2016-02-03 04:26:30 -08:00
JF Bastien
d8b373a605
Keep musl.bc
...
It can be used for static linking.
2016-02-03 02:27:12 -08:00
JF Bastien
fb8c48cc01
Forgot one 'limited'
2016-02-01 11:25:19 -08:00
JF Bastien
38b698553b
Include some feedback from Luke.
2016-02-01 11:14:27 -08:00
JF Bastien
ff04d7f6e7
More details on dlsym
2016-02-01 09:25:34 -08:00
JF Bastien
682407e272
dlsym: use same pattern as other loader
...
It's still broken because call_indirect requires a function in the same module.
2016-02-01 09:22:50 -08:00
JF Bastien
8bbb33957b
Handle main() not returning EXIT_SUCCESS.
2016-02-01 08:26:21 -08:00
JF Bastien
290eda430d
Note on segments overwriting each other.
2016-02-01 08:19:23 -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
297c0c1395
More dlcall clarification.
2016-02-01 08:07:36 -08:00
JF Bastien
b94a60e174
dlcall trampoline clarification.
2016-02-01 08:06:32 -08:00
JF Bastien
f73845c1b8
Typo.
2016-02-01 08:05:12 -08:00
JF Bastien
0430d8d821
Add note on heap sharing.
2016-02-01 08:04:53 -08:00