mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 15:12:31 +00:00
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:
parent
8b2b9aa019
commit
ea26af0b9d
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"
|
||||
|
Loading…
Reference in New Issue
Block a user