diff options
author | Alex Rønne Petersen <alex@alexrp.com> | 2024-11-23 01:19:51 +0100 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2025-02-21 19:29:44 -0500 |
commit | f1cda422cd3917130da4df423c1fcb6927f0f8eb (patch) | |
tree | 0c412a93d0223666ad34646ef9a3e7891bd50334 | |
parent | c47ad25ea3b484e10326f933e927c0bc8cded3da (diff) | |
download | musl-f1cda422cd3917130da4df423c1fcb6927f0f8eb.tar.gz |
i386, x86_64, x32: set the symbol type for the crt1 START function
-rw-r--r-- | arch/i386/crt_arch.h | 1 | ||||
-rw-r--r-- | arch/x32/crt_arch.h | 1 | ||||
-rw-r--r-- | arch/x86_64/crt_arch.h | 1 |
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" |