mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] [PATCH] i386, x86_64: Set the symbol type for the START function.
@ 2024-11-23  0:19 Alex Rønne Petersen
  0 siblings, 0 replies; only message in thread
From: Alex Rønne Petersen @ 2024-11-23  0:19 UTC (permalink / raw)
  To: musl; +Cc: Alex Rønne Petersen

As for other architectures. Noticed this while running Zig's gen_stubs.zig tool.
---
 arch/i386/crt_arch.h   | 1 +
 arch/x86_64/crt_arch.h | 1 +
 2 files changed, 2 insertions(+)

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/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"
-- 
2.40.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-11-23  0:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-23  0:19 [musl] [PATCH] i386, x86_64: Set the symbol type for the START function Alex Rønne Petersen

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).