summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2024-11-23 01:19:51 +0100
committerRich Felker <dalias@aerifal.cx>2025-02-21 19:29:44 -0500
commitf1cda422cd3917130da4df423c1fcb6927f0f8eb (patch)
tree0c412a93d0223666ad34646ef9a3e7891bd50334
parentc47ad25ea3b484e10326f933e927c0bc8cded3da (diff)
downloadmusl-f1cda422cd3917130da4df423c1fcb6927f0f8eb.tar.gz
i386, x86_64, x32: set the symbol type for the crt1 START function
-rw-r--r--arch/i386/crt_arch.h1
-rw-r--r--arch/x32/crt_arch.h1
-rw-r--r--arch/x86_64/crt_arch.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/arch/i386/crt_arch.h b/arch/i386/crt_arch.h
index 43c8477a..1a80fce3 100644
--- a/arch/i386/crt_arch.h
+++ b/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/arch/x32/crt_arch.h b/arch/x32/crt_arch.h
index 3eec61bd..b1c9c476 100644
--- a/arch/x32/crt_arch.h
+++ b/arch/x32/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"
diff --git a/arch/x86_64/crt_arch.h b/arch/x86_64/crt_arch.h
index 3eec61bd..b1c9c476 100644
--- a/arch/x86_64/crt_arch.h
+++ b/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"