| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[libc] Implement 'getenv' on the GPU target (#102376) Summary: This patch implements 'getenv'. I was torn on how to implement this, since realistically we only have access to this environment pointer in the "loader" interface. An alternative would be to use an RPC call every time, but I think that's overkill for what this will be used for. A better solution is just to emit a common DataEnvironment that contains all of the host visible resources to initialize. Right now this is the env_ptr, clock_freq, and rpc_client. I did this by making the app.h interface that Linux uses more general, could possibly move that into a separate patch, but I figured it's easier to see with the usage. | 1 年前 | |
[libc] major refactor of startup library (#76092) * separate initialization routines into _start and do_start for all architectures. * lift do_start as a separate object library to avoid code duplication. * (addtionally) address the problem of building hermetic libc with -fstack-pointer-* The crt1.o is now a merged result of three components: ___ |___ x86_64 | |_______ start.cpp.o <- _start (loads process initial stack and aligns stack pointer) | |_______ tls.cpp.o <- init_tls, cleanup_tls, set_thread_pointer (TLS related routines) |___ do_start.cpp.o <- do_start (sets up global variables and invokes the main function) | 2 年前 | |
[libc] fix sysconf test for rv32 (#162685) | 9 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 年前 | ||
| 2 年前 | ||
| 9 个月前 |