LibC: Make _init and _fini weak symbols
These seem to be missing sometimes when making shared executables
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user