Avoid using .type with clang
This is probably a more accurate fix than just for macOS.
This commit is contained in:
parent
35ae28b95d
commit
6849331bbc
|
@ -9,7 +9,9 @@
|
|||
/* init */
|
||||
.section .init
|
||||
.global _init
|
||||
#ifndef __clang__
|
||||
.type _init, @function
|
||||
#endif
|
||||
_init:
|
||||
push %rbp
|
||||
mov %rsp, %rbp
|
||||
|
@ -18,7 +20,9 @@ _init:
|
|||
/* fini */
|
||||
.section .fini
|
||||
.global _fini
|
||||
#ifndef __clang__
|
||||
.type _fini, @function
|
||||
#endif
|
||||
_fini:
|
||||
push %rbp
|
||||
mov %rsp, %rbp
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
/* init */
|
||||
.section .init
|
||||
.global _init
|
||||
#ifndef __APPLE__
|
||||
#ifndef __clang__
|
||||
.type _init, @function
|
||||
#endif
|
||||
_init:
|
||||
|
@ -20,7 +20,7 @@ _init:
|
|||
/* fini */
|
||||
.section .fini
|
||||
.global _fini
|
||||
#ifndef __APPLE__
|
||||
#ifndef __clang__
|
||||
.type _fini, @function
|
||||
#endif
|
||||
_fini:
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
.section .text
|
||||
/* arch_setgdt */
|
||||
.global __arch_setgdt
|
||||
#ifndef __APPLE__
|
||||
#ifndef __clang__
|
||||
.type __arch_setgdt, @function
|
||||
#endif
|
||||
__arch_setgdt:
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
.section .text
|
||||
/* arch_setidt */
|
||||
.global __arch_setidt
|
||||
#ifndef __APPLE__
|
||||
#ifndef __clang__
|
||||
.type __arch_setidt, @function
|
||||
#endif
|
||||
__arch_setidt:
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
/* text */
|
||||
.section .text
|
||||
.global intr_disable
|
||||
#ifndef __APPLE__
|
||||
#ifndef __clang__
|
||||
.type intr_disable, @function
|
||||
#endif
|
||||
intr_disable:
|
||||
|
@ -18,7 +18,7 @@ intr_disable:
|
|||
|
||||
/* intr_enable */
|
||||
.global intr_enable
|
||||
#ifndef __APPLE__
|
||||
#ifndef __clang__
|
||||
.type intr_enable, @function
|
||||
#endif
|
||||
intr_enable:
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
.section .text
|
||||
/* inb */
|
||||
.global inb
|
||||
#ifndef __APPLE__
|
||||
#ifndef __clang__
|
||||
.type inb, @function
|
||||
#endif
|
||||
inb:
|
||||
|
@ -24,7 +24,7 @@ inb:
|
|||
|
||||
/* iowait */
|
||||
.global iowait
|
||||
#ifndef __APPLE__
|
||||
#ifndef __clang__
|
||||
.type iowait, @function
|
||||
#endif
|
||||
iowait:
|
||||
|
@ -37,7 +37,7 @@ iowait:
|
|||
|
||||
/* outb */
|
||||
.global outb
|
||||
#ifndef __APPLE__
|
||||
#ifndef __clang__
|
||||
.type outb, @function
|
||||
#endif
|
||||
outb:
|
||||
|
|
|
@ -33,7 +33,7 @@ stack_top:
|
|||
.section .text
|
||||
/* start */
|
||||
.global _start
|
||||
#ifndef __APPLE__
|
||||
#ifndef __clang__
|
||||
.type _start, @function
|
||||
#endif
|
||||
_start:
|
||||
|
|
|
@ -33,7 +33,7 @@ stack_top:
|
|||
.section .text
|
||||
/* start */
|
||||
.global _start
|
||||
#ifndef __APPLE__
|
||||
#ifndef __clang__
|
||||
.type _start, @function
|
||||
#endif
|
||||
_start:
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
.section .text
|
||||
/* multiboot_boot_kernel32 */
|
||||
.global multiboot_boot_kernel32
|
||||
#ifndef __APPLE__
|
||||
#ifndef __clang__
|
||||
.type multiboot_boot_kernel32, @function
|
||||
#endif
|
||||
multiboot_boot_kernel32:
|
||||
|
@ -43,7 +43,7 @@ multiboot_boot_kernel32:
|
|||
|
||||
|
||||
.global multiboot_boot_kernel64
|
||||
#ifndef __APPLE__
|
||||
#ifndef __clang__
|
||||
.type multiboot_boot_kernel64, @function
|
||||
#endif
|
||||
multiboot_boot_kernel64:
|
||||
|
|
|
@ -50,7 +50,7 @@ multiboot_header:
|
|||
.section .text
|
||||
/* multiboot_start */
|
||||
.global _multiboot_start
|
||||
# ifndef __APPLE__
|
||||
# ifndef __clang__
|
||||
.type _multiboot_start, @function
|
||||
# endif
|
||||
_multiboot_start:
|
||||
|
|
Loading…
Reference in New Issue
Block a user