musl: Set symbol type for the START function on i386 and x86_64.
https://www.openwall.com/lists/musl/2024/11/23/1
This commit is contained in:
1
lib/libc/musl/arch/i386/crt_arch.h
vendored
1
lib/libc/musl/arch/i386/crt_arch.h
vendored
@@ -3,6 +3,7 @@ __asm__(
|
||||
".weak _DYNAMIC \n"
|
||||
".hidden _DYNAMIC \n"
|
||||
".global " START "\n"
|
||||
".type " START ",%function \n"
|
||||
START ":\n"
|
||||
" xor %ebp,%ebp \n"
|
||||
" mov %esp,%eax \n"
|
||||
|
||||
1
lib/libc/musl/arch/x86_64/crt_arch.h
vendored
1
lib/libc/musl/arch/x86_64/crt_arch.h
vendored
@@ -1,6 +1,7 @@
|
||||
__asm__(
|
||||
".text \n"
|
||||
".global " START " \n"
|
||||
".type " START ",%function \n"
|
||||
START ": \n"
|
||||
" xor %rbp,%rbp \n"
|
||||
" mov %rsp,%rdi \n"
|
||||
|
||||
Reference in New Issue
Block a user