mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 00:52:52 +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"
|
".weak _DYNAMIC \n"
|
||||||
".hidden _DYNAMIC \n"
|
".hidden _DYNAMIC \n"
|
||||||
".global " START "\n"
|
".global " START "\n"
|
||||||
|
".type " START ",%function \n"
|
||||||
START ":\n"
|
START ":\n"
|
||||||
" xor %ebp,%ebp \n"
|
" xor %ebp,%ebp \n"
|
||||||
" mov %esp,%eax \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__(
|
__asm__(
|
||||||
".text \n"
|
".text \n"
|
||||||
".global " START " \n"
|
".global " START " \n"
|
||||||
|
".type " START ",%function \n"
|
||||||
START ": \n"
|
START ": \n"
|
||||||
" xor %rbp,%rbp \n"
|
" xor %rbp,%rbp \n"
|
||||||
" mov %rsp,%rdi \n"
|
" mov %rsp,%rdi \n"
|
||||||
|
Loading…
Reference in New Issue
Block a user