From ea26af0b9d420413e11265777a47aa38c0822a6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sat, 23 Nov 2024 01:23:02 +0100 Subject: [PATCH] musl: Set symbol type for the START function on i386 and x86_64. https://www.openwall.com/lists/musl/2024/11/23/1 --- lib/libc/musl/arch/i386/crt_arch.h | 1 + lib/libc/musl/arch/x86_64/crt_arch.h | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/libc/musl/arch/i386/crt_arch.h b/lib/libc/musl/arch/i386/crt_arch.h index 43c8477a81..1a80fce353 100644 --- a/lib/libc/musl/arch/i386/crt_arch.h +++ b/lib/libc/musl/arch/i386/crt_arch.h @@ -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" diff --git a/lib/libc/musl/arch/x86_64/crt_arch.h b/lib/libc/musl/arch/x86_64/crt_arch.h index 3eec61bdcd..b1c9c4761d 100644 --- a/lib/libc/musl/arch/x86_64/crt_arch.h +++ b/lib/libc/musl/arch/x86_64/crt_arch.h @@ -1,6 +1,7 @@ __asm__( ".text \n" ".global " START " \n" +".type " START ",%function \n" START ": \n" " xor %rbp,%rbp \n" " mov %rsp,%rdi \n"