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
52a00611c2
Hack around syscalls.
2016-01-30 02:27:36 -08:00
66ec565817
Remove regcomp: it makes LLVM sad with byval
2016-01-30 02:27:23 -08:00
910f9e5300
Hacky libc build
2016-01-28 11:10:19 -08:00
317fa55ab1
Fixes.
2016-01-28 11:05:27 -08:00
273da2708f
Import arch/wasm32 from emscripten
2016-01-28 11:04:59 -08:00
f9b8df464d
add ssp suppression to some arch-override files that may need it
...
these were not covered by the parent-level rules with the new build
system. in the old build system, the equivalent files were often in
arch/$(ARCH)/src and likewise lacked the suppression. this could lead
to early crashing (before thread pointer init) when libc itself was
built with stack protector enabled.
2016-01-25 20:06:31 -05:00
1619127c11
use same object files for libc.a and libc.so if compiler produces PIC
...
now that .lo and .o files differ only by whether -fPIC is passed (and
no longer at the source level based on the SHARED macro), it's
possible to use the same object files for both static and shared libc
when the compiler would produce PIC for the static files anyway. this
happens if the user has included -fPIC in their CFLAGS or if the
compiler has been configured to produce PIE by default.
we use the .lo files for both, and still append -fPIC to the CFLAGS,
rather than using the .o files so that libc.so does not break
catastrophically if the user later removes -fPIC from CFLAGS in
config.mak or on the make command line. this also ensures that we get
full -fPIC in case -fpic, -fPIE, or some other lesser-PIC option was
passed in CFLAGS.
2016-01-25 19:57:38 -05:00