Commit Graph

3292 Commits

Author SHA1 Message Date
6caecad2bc [WebAssembly] Fix 'make install' 2017-10-20 16:06:38 -07:00
47c33a50c1 Merge pull request #10 from sbc100/enable_wasm_make
[WebAssembly] Enable building with 'make' command
2017-10-19 18:44:01 -07:00
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
357305e18f Merge pull request #8 from aheejin/strlib_bugfix
Fix bugs in strcmp/strncmp/strchr
2017-08-22 16:30:20 -07:00
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
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
2a59097dd1 Add support for building directly to wasm object files. 2017-06-09 16:24:23 -07:00
128cf2eece Use read if readbuffer is unavailable 2017-01-02 15:10:34 -08:00
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
39fde6042e Update wasm.js loader to use new WebAssembly JS API 2016-10-26 13:34:58 -07:00
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
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
cff987a27b Update wasm.js for v8's change to 2-level FFI namespace 2016-03-08 15:30:28 -08:00
cd50df76d4 Use the new exports table on the wasm module object 2016-02-29 13:45:25 -08:00
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
1648814783 Add clrsbl clrsbll as well 2016-02-14 14:08:20 -08:00
49dbb74456 Add __builtin_clrsb as NYI
builtin-bitops-1.c now hits it.
2016-02-13 13:57:29 -08:00
968d8d2158 Improve trap handling, fix isspace. 2016-02-03 08:30:55 -08:00
7f1742a8c3 Fix reference error. 2016-02-03 04:26:30 -08:00
d8b373a605 Keep musl.bc
It can be used for static linking.
2016-02-03 02:27:12 -08:00
fb8c48cc01 Forgot one 'limited' 2016-02-01 11:25:19 -08:00
38b698553b Include some feedback from Luke. 2016-02-01 11:14:27 -08:00
ff04d7f6e7 More details on dlsym 2016-02-01 09:25:34 -08:00
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
8bbb33957b Handle main() not returning EXIT_SUCCESS. 2016-02-01 08:26:21 -08:00
290eda430d Note on segments overwriting each other. 2016-02-01 08:19:23 -08:00
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
297c0c1395 More dlcall clarification. 2016-02-01 08:07:36 -08:00
b94a60e174 dlcall trampoline clarification. 2016-02-01 08:06:32 -08:00
f73845c1b8 Typo. 2016-02-01 08:05:12 -08:00
0430d8d821 Add note on heap sharing. 2016-02-01 08:04:53 -08:00
acc1d6453b dlfcn.h implementation and detailed example. 2016-02-01 08:00:42 -08:00
13f9666606 Stub dlfcn.h 2016-02-01 04:54:06 -08:00
68531e26b5 More readme content. 2016-02-01 04:46:05 -08:00
ee62761f12 Typo. 2016-01-31 12:41:25 -08:00
e5d2fe138b Still more readme. 2016-01-31 12:39:00 -08:00
5a74c85f16 More readme. 2016-01-31 12:36:42 -08:00
2809b1ff41 Code quotes 2016-01-31 06:57:10 -08:00
e2ce69a6fd Merge branch 'wasm-prototype-1' of github.com:WebAssembly/musl into wasm-prototype-1 2016-01-31 06:55:58 -08:00
556002b394 Add README.md 2016-01-31 06:55:45 -08:00
26e7adf5d0 wasm objects don't have hasOwnProperty and functions aren't Function 2016-01-31 02:49:24 -08:00
ae7274db9b Add a few todos. 2016-01-30 14:12:19 -08:00
f11387c0bb Return -1 from syscall stubs. 2016-01-30 13:45:37 -08:00
e1f64b81c3 Add wasm.js
Imported from: https://github.com/WebAssembly/waterfall/blob/master/src/test/wasm.js
Hash: 8074c23c566a65f32d6b7fac065abf1ffca95473
2016-01-30 09:08:51 -08:00
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
0861c7123e Hack around the import argument mismatch
sexpr-wasm rightfully complained that the imports weren't called with the right signatures. I'm not sure how the syscall macro layering works, but this hack works for now.
2016-01-30 06:45:11 -08:00
cbc4701edb Remove the only non-wasm32-arch change
I fixed the issue in LLVM commit r259305.
2016-01-30 06:34:15 -08:00
0c46644853 No need for 'global' 2016-01-30 03:55:31 -08:00
406cb2e6b5 Fix compile list in verbose mode. 2016-01-30 02:50:24 -08:00
f878c5fc09 Allow saving temporary files. 2016-01-30 02:44:50 -08:00