musl: Set symbol type for the START function on i386 and x86_64.

https://www.openwall.com/lists/musl/2024/11/23/1
This commit is contained in:
Alex Rønne Petersen 2024-11-23 01:23:02 +01:00
parent 8b2b9aa019
commit ea26af0b9d
No known key found for this signature in database
2 changed files with 2 additions and 0 deletions

View File

@ -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"

View File

@ -1,6 +1,7 @@
__asm__(
".text \n"
".global " START " \n"
".type " START ",%function \n"
START ": \n"
" xor %rbp,%rbp \n"
" mov %rsp,%rdi \n"