authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-11-23 01:23:02+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-11-23 01:23:02+01:00
logea26af0b9d420413e11265777a47aa38c0822a6e
tree437cfd6cb56fcda21adddb5a2e197538b58e0817
parent8b2b9aa0195f16d1d8dad971911b75a4ae513f87
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

musl: Set symbol type for the START function on i386 and x86_64.

https://www.openwall.com/lists/musl/2024/11/23/1

2 files changed, 2 insertions(+), 0 deletions(-)

lib/libc/musl/arch/i386/crt_arch.h+1
......@@ -3,6 +3,7 @@ __asm__(
33".weak _DYNAMIC \n"
44".hidden _DYNAMIC \n"
55".global " START "\n"
6".type " START ",%function \n"
67START ":\n"
78" xor %ebp,%ebp \n"
89" mov %esp,%eax \n"
lib/libc/musl/arch/x86_64/crt_arch.h+1
......@@ -1,6 +1,7 @@
11__asm__(
22".text \n"
33".global " START " \n"
4".type " START ",%function \n"
45START ": \n"
56" xor %rbp,%rbp \n"
67" mov %rsp,%rdi \n"