Dan Robertson
d9d2ec1992
Start on support for aarch64
...
- Add aarch64 support
- crt0 - add support to _start
- platform - aarch64 does not have the open syscall. Instead most
libc implementations use openat() with AT_FDCWD
- Use sc instead of syscall. sc is the maintained fork of syscall.
2018-03-04 05:10:31 +00:00
Jeremy Soller
3855e4c4b9
Merge branch 'master' of https://github.com/sajattack/relibc into sajattack-master
2018-03-03 20:06:27 -07:00
Jeremy Soller
64b2970cf4
make it possible to printf to any fmt::Write implementer
2018-03-03 19:57:18 -07:00
Jeremy Soller
5520526bef
Implement printf (very simple version)
2018-03-03 19:47:01 -07:00
Jeremy Soller
bf987098dc
Use openlibm
2018-03-03 17:56:53 -07:00
Paul Sajna
341bc1b938
parameter names
2018-03-03 16:49:01 -08:00
Jeremy Soller
172517e4f8
Add all stdlib functions
2018-03-03 17:44:09 -07:00
Jeremy Soller
f5ef0af883
Implement malloc/free with ralloc
2018-03-03 16:54:58 -07:00
Jeremy Soller
e30dec7124
WIP: stdio.h
2018-03-03 15:15:50 -07:00
Jeremy Soller
2aff4d41dd
Implement argument handling, add string.h
2018-03-03 14:55:54 -07:00
Jeremy Soller
78e421cb72
Implement some functions on Linux
2018-03-03 14:31:28 -07:00
Paul Sajna
457d3972f7
merge with origin, put unistd back the way it was
2018-03-03 12:28:59 -08:00
Jeremy Soller
9fb0b77d89
Include sys/types in fctnl and unistd
2018-03-03 13:10:21 -07:00
Jeremy Soller
d64dba1c1e
Use patched cbindgen, implement stdbool and stdint
2018-03-03 13:05:43 -07:00
Jeremy Soller
a9aae80ae0
WIP: Define common types
2018-03-03 10:08:16 -07:00
Jeremy Soller
d337caafe6
Remove std from outputted libc.a
2018-03-03 09:19:25 -07:00
Jeremy Soller
d20e3f69e1
no_std
2018-03-03 08:51:14 -07:00
Jeremy Soller
a01ff6baf8
Add overarching staticlib
2018-03-03 08:44:18 -07:00
Jeremy Soller
7251cbec76
Add definitions for unistd
2018-03-03 08:33:19 -07:00
Jeremy Soller
b720d0181f
Add fcntl
2018-03-03 08:25:53 -07:00
Jeremy Soller
858ad52cf6
Finish function definitions for unistd
2018-03-03 08:04:16 -07:00
Paul Sajna
1a298045b6
#[no_mangle]
2018-03-02 21:27:35 -08:00
Paul Sajna
e57a314acf
rustfmt
2018-03-02 18:24:40 -08:00
Paul Sajna
7da98c514a
wctype.h skeleton
2018-03-02 18:15:13 -08:00
Paul Sajna
bd91a5a11e
wchar.h skeleton
2018-03-02 18:08:35 -08:00
Paul Sajna
28b72a667c
grp.h skeleton
2018-03-02 17:51:39 -08:00
Paul Sajna
b8a5b9b551
aio.h skeleton
2018-03-02 17:40:35 -08:00
Paul Sajna
7f29a7127c
ctype.h skeleton
2018-03-02 17:36:23 -08:00
Paul Sajna
3ccd24c50e
mman
2018-03-02 17:30:20 -08:00
Paul Sajna
ae49c54d60
stdio.h skeleton
2018-03-02 17:23:28 -08:00
Paul Sajna
c1d1be4d61
semaphore.h skeleton
2018-03-02 17:07:17 -08:00
Paul Sajna
e39ff9d5a3
add string.h skeleton
2018-03-02 16:59:44 -08:00
Paul Sajna
aef8c1442d
pthread skeleton
2018-03-02 16:55:13 -08:00
Paul Sajna
af548fd1bc
add bindgen post-processing script, use it for unistd and stdlib.h
2018-03-02 14:50:13 -08:00
Jeremy Soller
b2b120bbc1
Add many more functions
2018-03-01 21:02:52 -07:00
Jeremy Soller
3267409c57
Add very basic example
2018-03-01 20:26:40 -07:00