Commit Graph

1144 Commits

Author SHA1 Message Date
Jeremy Soller 30aef27c76 Correctly set up TLS on Redox and other fixes for pthread_clone 2019-04-14 19:08:58 -06:00
Jeremy Soller 7fe0beb916 Add DTPMOD64 2019-04-14 13:21:07 -06:00
Jeremy Soller 5a005864a8 Fix compilation on redox 2019-04-14 13:18:57 -06:00
Jeremy Soller 361f32b63c ld_so: significant refactor to prepare for pthread_create support of TLS 2019-04-14 13:17:07 -06:00
Jeremy Soller 9f5e5f24dc Correctly set tcb pointer to the end of TLS 2019-04-14 10:44:25 -06:00
Jeremy Soller 47baf499bf Fix TLS offsets 2019-04-14 08:40:03 -06:00
Jeremy Soller cb9e779ca1 Install ld_so 2019-04-13 21:39:08 -06:00
Jeremy Soller b2cc8f6d26 Fix compilation on Redox 2019-04-13 21:32:51 -06:00
Jeremy Soller 27cebdd688 Build librelibc without incremental support, gc-sections for ld.so 2019-04-13 21:15:38 -06:00
Jeremy Soller ba50c94c3f Improve TLS support 2019-04-13 21:15:01 -06:00
Jeremy Soller 63cb2f3454 ld.so: Add auxv support, get ld_library_path from env 2019-04-13 21:14:52 -06:00
Jeremy Soller 084b69b361 Add ld_so executable 2019-04-13 12:17:38 -06:00
Jeremy Soller d5eb1e2732 Add dl-tls.h, required for shared libraries 2019-04-12 09:30:02 -06:00
Jeremy Soller d9ec8b4ab0 Do not link to standard libraries when making libc.so... 2019-04-11 21:02:01 -06:00
Jeremy Soller 2b56f2882b Add libc.so, remove compiler_builtins 2019-04-11 21:00:39 -06:00
Jeremy Soller e5529dc883 Update pthreads-emb 2019-04-11 20:31:11 -06:00
Jeremy Soller cf800b5282 Add shared object for openlibm and pthreads-emb 2019-04-11 20:10:08 -06:00
Jeremy Soller 2fdca9bd0a Work around definition of O_NOFOLLOW, and add target for only building and installing headers 2019-04-07 10:11:05 -06:00
Jeremy Soller f4fccc6d19 Update rust 2019-04-07 08:47:51 -06:00
Jeremy Soller 73dda0f32c Add missing cast 2019-04-06 21:38:59 -06:00
Jeremy Soller f2b86e985c Ensure that getpeername and getsockname return a sockaddr of family AF_INET 2019-04-06 21:34:56 -06:00
Jeremy Soller 588f032f75 Rename can be done with O_PATH 2019-04-06 20:47:20 -06:00
Jeremy Soller 54b6c8f025 Update pthreads-emb 2019-04-04 19:59:06 -06:00
Jeremy Soller 862c76b25f Correct error for unknown protocol type in socket 2019-04-01 20:35:15 -06:00
Jeremy Soller f4c036c3aa Fix returning incorrect ai_socktype from getaddrinfo 2019-04-01 20:34:53 -06:00
Jeremy Soller 42d40da973 Map stacks based on provided size. 2019-03-31 15:04:37 -06:00
Jeremy Soller 17372b4f69 Fix thread starting before pte_osThreadStart 2019-03-30 16:18:07 -06:00
jD91mZM2 3f98962054 Fix bug in scanf where EOF would be ignored 2019-03-28 17:57:13 +01:00
Jeremy Soller 6548aad36d Use next_byte function in all places in scanf 2019-03-27 21:32:02 -06:00
Jeremy Soller d13fb3f42b Fix panic in sigaction 2019-03-27 21:31:18 -06:00
Jeremy Soller bee72373be Fix panic not producing output 2019-03-27 21:28:39 -06:00
Jeremy Soller 5dca9843dc Fix use of trace macro when errno is imported 2019-03-27 20:57:12 -06:00
Jeremy Soller 65aeda1f59 Use AF_INET6 instead of PF_INET6 in test 2019-03-27 20:56:59 -06:00
Jeremy Soller a88ec09131 Prevent override of panic from relibc 2019-03-27 20:56:23 -06:00
Jeremy Soller 229ca66726 Merge branch 'usleep' into 'master'
Fix usleep

Closes #144

See merge request redox-os/relibc!204
2019-03-25 13:06:46 +00:00
Mateusz Mikuła e01d1ce11b Fix usleep 2019-03-25 13:36:48 +01:00
Jeremy Soller 7a1e2a6269 Merge branch 'new-toolchain' into 'master'
Support use of new cross compiler

See merge request redox-os/relibc!203
2019-03-17 02:28:01 +00:00
Jeremy Soller 0e667c5f25 Remove .travis.yml 2019-03-16 20:20:43 -06:00
Jeremy Soller 6f12bb6a32 Install tar before attempting to use it 2019-03-16 20:18:34 -06:00
Jeremy Soller 59653ee290 Support use of new cross compiler 2019-03-16 20:16:00 -06:00
Jeremy Soller cee4449f7c Replace make calls with MAKE variable 2019-03-16 18:54:11 -06:00
Jeremy Soller 5715fb7ba6 Work on switching to epoll as backend for select and poll 2019-03-10 13:03:00 -06:00
Jeremy Soller cdbeda1ca0 Merge branch 'patch-2' into 'master'
Fix conditional compilation of sys/mman.h

See merge request redox-os/relibc!201
2019-03-05 02:08:01 +00:00
jD91mZM2 640c6d41a7 Merge branch 'aarch64-prep' into 'master'
Aarch64 prep redux

See merge request redox-os/relibc!202
2019-03-04 09:48:26 +00:00
Robin Randhawa 9443eef518 Add wint_t definition to stddef.h
Without this the relibc tests would break. With this the relibc tests
pass and formerly breaking builds (such as uutils -> onig_sys) pass.
2019-03-03 21:50:13 +00:00
Robin Randhawa 23de2ca7ca Remove redundant wchar_t and win_t definitions
Typically with libc implementations, wchar_t and co are either defined
entirely by the libc or, under libc's arrangement, by headers supplied
by the compiler.

Things like dlmalloc in relibc need these definitions from relibc itself
and that's already already furnished by relibc's stddef.h.

These additional definitions here are redundant and collide with
compiler headers - for example: onig_sys (something that uutils depends
on) breaks. Instead, this patch makes the compiler headers define
things appropriately.
2019-03-03 21:50:04 +00:00
Robin Randhawa f9f752d74c aarch64-prep: Dummy auxv.h
For AArch64, the ring crate depends on the presence of this header and a definition
of getauxval.
2019-03-03 21:49:52 +00:00
Robin Randhawa 17bed54103 aarch64: Fix incorrect init/fini stack manipulation
The pre-index operator ('!') was missing at the end of the stp
instruction.

As a result, the stack pointer wasn't updated after the
store of the 64-bit pair and the stored values were basically lost when
follow on code used the stack for later store ops.
2019-03-03 21:49:46 +00:00
Angelo Bulfone 31fc29e70c Fix conditional compilation of sys/mman.h 2019-03-03 21:14:45 +00:00
jD91mZM2 269b8a1d3e Merge branch 'cleanup' into 'master'
tests: Macro based error handling

See merge request redox-os/relibc!195
2019-03-03 15:19:19 +00:00