mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-11 23:39:17 +00:00
fix(userspace/libc): modify __libc_init and crt0 to initialize "environ"
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
@ -44,10 +44,12 @@ __attribute__((naked, used, no_stack_protector, section(".text"))) void _start()
|
||||
"andq $-16, %rsp\n"
|
||||
"movq %rsp, %rbp\n"
|
||||
|
||||
"movq %rdx, %rax\n"
|
||||
"pushq %rcx\n"
|
||||
"pushq %rdx\n"
|
||||
"pushq %rsi\n"
|
||||
"pushq %rdi\n"
|
||||
"movq %rax, %rdi\n"
|
||||
|
||||
"call __libc_init\n"
|
||||
"call __crt_init_array\n"
|
||||
|
Reference in New Issue
Block a user