Fix build with clang

This commit is contained in:
Pierre Pronchery 2021-10-10 19:35:58 +02:00
parent 9377b12f9b
commit 33499036e4
3 changed files with 8 additions and 2 deletions

View File

@ -28,10 +28,12 @@
.section .text
.text
.global loader_enter
#ifndef __clang__
.type loader_enter,@function
.type _loader_enter_do,@function
#endif
loader_enter:
/* reset the stack */
xor %rbp, %rbp

View File

@ -28,9 +28,11 @@
.section .text
.text
#ifndef __clang__
.global loader_enter
.type loader_enter,@function
#endif
loader_enter:
/* reset the stack */
xor %ebp, %ebp

View File

@ -30,8 +30,10 @@
/* main */
.text
#ifndef __clang__
.global main
.type main,@function
#endif
main:
/* puts(argv[0]) */
mov (%rsi), %rdi