Commit Graph

41 Commits

Author SHA1 Message Date
Josh Megnauth e39b27664f unsafe_op_in_unsafe_fn: ld_so, generic/redox-rt
There are a few functions where I allowed the lint. The lower level and
FFI nature of relibc means that there are areas with a lot of unsafe.
Some functions are basically long blocks of unsafe or contain lots of
small blocks of unsafe. unsafe_op_in_unsafe_fn doesn't add clarity to
these functions. Instead, it reduces readability by adding an indent or
small "unsafe { .. }" clutter.
2025-10-04 21:36:51 -04:00
Jeremy Soller 82084440ad Support nightly-2025-10-03 2025-10-03 21:51:10 -06:00
elle a434c0ef12 cargo: add explicit editions
Adds explicit `edition` definitions to sub-crates.
2025-09-08 20:23:36 +00:00
Jeremy Soller a1db57a5a3 Get main function in crt0 to fix dynamic linking issues 2025-05-03 11:20:20 -06:00
bjorn3 facc643e18 Couple of misc improvements
Fix a bunch of warnings and clarify that execve will never return Ok by
using Infallible
2025-03-30 20:18:01 +02:00
Andrey Turkin a4122753e6 Initial RISC-V64 support 2024-10-11 06:44:54 +03:00
Jeremy Soller 73952b69ed Update to new nightly 2024-05-11 14:00:59 -06:00
Ivan Tan 4cb564bc99 aarch64: align sp in _start 2023-07-07 18:58:42 +08:00
Jeremy Soller 16abc91341 cargo fmt and cargo fix 2022-11-11 13:27:18 -07:00
Jeremy Soller eac4a349d8 Set default FPU control word to 0x37F 2022-08-22 08:10:42 -06:00
Jeremy Soller c1b20cdeab Add x86 _start 2022-08-20 20:43:41 -06:00
4lDO2 b930cc98d0 Correctly preserve and set MXCSR and FCW. 2022-07-26 21:34:47 +02:00
4lDO2 ebd597f748 Update dependencies for rust 2022-03-18. 2022-03-24 17:12:02 +01:00
Jeremy Soller b3d71ba8ba Make relibc_panic a weakly linked stub for crt and ld_so objects 2021-08-04 07:20:48 -06:00
Jeremy Soller ebb17654f8 Add llvm_asm features 2020-08-02 13:42:34 -06:00
Jeremy Soller 5d45042d5d Correct more asm! usages 2020-08-02 13:38:29 -06:00
Jeremy Soller bee72373be Fix panic not producing output 2019-03-27 21:28:39 -06:00
Jeremy Soller a88ec09131 Prevent override of panic from relibc 2019-03-27 20:56:23 -06:00
Jeremy Soller 39b999ccea Update to new rust-toolchain 2018-11-07 20:25:21 -07:00
Jeremy Soller bab4e2896a Format 2018-08-27 06:35:30 -06:00
Jeremy Soller ed00ddfb54 Fix remaining issues, move setjmp into relibc crate, move start logic into relibc 2018-08-26 12:28:27 -06:00
Jeremy Soller c63c930e4a Make it compile 2018-08-26 12:10:02 -06:00
Jeremy Soller c20ce5ffed Large reorganization of headers (WIP) 2018-08-26 08:11:35 -06:00
Jeremy Soller 729709a8e6 Update all modules to new Pal mechanism 2018-08-25 08:42:57 -06:00
jD91mZM2 128209788c Finish up fexec migration 2018-08-13 14:46:59 +02:00
jD91mZM2 66d7aa8553 Revert 'Fix off by one error' because it introduces one
Turns out, it's just redox not having a NULL pointer here. Linux does.
2018-08-13 11:37:29 +02:00
jD91mZM2 d5f85906cb Fix off-by-one error :| 2018-08-12 21:50:22 +02:00
jD91mZM2 1c4e8852dd Migrate to new FEXEC system call 2018-08-12 20:35:45 +02:00
jD91mZM2 23a8855e50 Fix garbage env pointer to main on redox 2018-08-08 11:01:16 +02:00
jD91mZM2 3bb3a3e322 Fix strcpy 2018-08-07 11:35:23 +02:00
jD91mZM2 e749d23030 Solve stdin/out/err UB in a better way 2018-07-25 14:29:14 +02:00
jD91mZM2 482bd9c5f1 fmt.sh 2018-07-17 17:24:22 +02:00
jD91mZM2 75145ab92b Pass envp to main 2018-07-14 19:48:10 +02:00
jD91mZM2 019011f029 WIP env support 2018-07-14 18:03:22 +02:00
Jeremy Soller 4c4ce80fcd Fix warnings 2018-07-13 09:52:53 -06:00
jD91mZM2 e206400d19 Move exec* back to platform
This undos a workaround. Jeremy moved the ralloc stuff to platform and suddenly this seems to work again. I don't know what is different from when I tried this before and now, but I don't really care
2018-07-04 09:29:34 +02:00
Jeremy Soller b6b34a7026 Ralloc fixes and fixes for Redox execution 2018-07-03 19:07:07 -06:00
Jeremy Soller 7e6e1b164c Align stack on x86_64 2018-07-03 11:31:05 -06:00
Jeremy Soller f265d7c5be Fix linking issues with lang items 2018-06-24 09:56:08 -06:00
Jeremy Soller 878f466b67 Update to new ralloc, new panic implementation, new compiler-builtins 2018-06-24 09:50:15 -06:00
Jeremy Soller 543526cb85 Move crt0 and platform into src folder
Add cargo fmt script
2018-03-06 19:55:11 -07:00