LibC: Make _init and _fini weak symbols

These seem to be missing sometimes when making shared executables
This commit is contained in:
2024-09-11 14:31:26 +03:00
parent a07cbabcb3
commit 4189a1c729
3 changed files with 12 additions and 4 deletions

View File

@@ -19,7 +19,11 @@ _start:
call _init_libc
# call global constructors
call _init
movl $_init, %eax
testl %eax, %eax
jz 1f
call *%eax
1:
movl $__init_array_start, %ebx
jmp 2f