mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibC: Clean up crt0
We already set these variables and call `_init` in the dynamic linker. As we don't care about static binaries, remove these assignments and the call to `_init` from `_entry`. The function referenced by DT_INIT is also not necessarily called `_init`, so directly calling `_init` is not really correct. `s_global_initializers_ran` and `__stack_chk_guard` are unused, so remove them.
This commit is contained in:
parent
0bff1f61b6
commit
e7c8ff3839
Notes:
sideshowbarker
2024-07-17 04:09:56 +09:00
Author: https://github.com/spholz
Commit: e7c8ff3839
Pull-request: https://github.com/SerenityOS/serenity/pull/21203
Reviewed-by: https://github.com/BertalanD
2 changed files with 2 additions and 12 deletions
|
@ -20,7 +20,6 @@ __thread int errno_storage;
|
|||
char** environ;
|
||||
bool __environ_is_malloced;
|
||||
bool __stdio_is_initialized;
|
||||
bool s_global_initializers_ran;
|
||||
void* __auxiliary_vector;
|
||||
|
||||
static void __auxiliary_vector_init();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue