Browse Source

i386, x86_64, x32: set the symbol type for the crt1 START function

Alex Rønne Petersen 6 months ago
parent
commit
f1cda422cd
3 changed files with 3 additions and 0 deletions
  1. 1 0
      arch/i386/crt_arch.h
  2. 1 0
      arch/x32/crt_arch.h
  3. 1 0
      arch/x86_64/crt_arch.h

+ 1 - 0
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"

+ 1 - 0
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"

+ 1 - 0
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"