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 */
|
/* init */
|
||||||
.section .init
|
.section .init
|
||||||
.global _init
|
.global _init
|
||||||
|
#ifndef __clang__
|
||||||
.type _init, @function
|
.type _init, @function
|
||||||
|
#endif
|
||||||
_init:
|
_init:
|
||||||
push %rbp
|
push %rbp
|
||||||
mov %rsp, %rbp
|
mov %rsp, %rbp
|
||||||
|
@ -18,7 +20,9 @@ _init:
|
||||||
/* fini */
|
/* fini */
|
||||||
.section .fini
|
.section .fini
|
||||||
.global _fini
|
.global _fini
|
||||||
|
#ifndef __clang__
|
||||||
.type _fini, @function
|
.type _fini, @function
|
||||||
|
#endif
|
||||||
_fini:
|
_fini:
|
||||||
push %rbp
|
push %rbp
|
||||||
mov %rsp, %rbp
|
mov %rsp, %rbp
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
/* init */
|
/* init */
|
||||||
.section .init
|
.section .init
|
||||||
.global _init
|
.global _init
|
||||||
#ifndef __APPLE__
|
#ifndef __clang__
|
||||||
.type _init, @function
|
.type _init, @function
|
||||||
#endif
|
#endif
|
||||||
_init:
|
_init:
|
||||||
|
@ -20,7 +20,7 @@ _init:
|
||||||
/* fini */
|
/* fini */
|
||||||
.section .fini
|
.section .fini
|
||||||
.global _fini
|
.global _fini
|
||||||
#ifndef __APPLE__
|
#ifndef __clang__
|
||||||
.type _fini, @function
|
.type _fini, @function
|
||||||
#endif
|
#endif
|
||||||
_fini:
|
_fini:
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
.section .text
|
.section .text
|
||||||
/* arch_setgdt */
|
/* arch_setgdt */
|
||||||
.global __arch_setgdt
|
.global __arch_setgdt
|
||||||
#ifndef __APPLE__
|
#ifndef __clang__
|
||||||
.type __arch_setgdt, @function
|
.type __arch_setgdt, @function
|
||||||
#endif
|
#endif
|
||||||
__arch_setgdt:
|
__arch_setgdt:
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
.section .text
|
.section .text
|
||||||
/* arch_setidt */
|
/* arch_setidt */
|
||||||
.global __arch_setidt
|
.global __arch_setidt
|
||||||
#ifndef __APPLE__
|
#ifndef __clang__
|
||||||
.type __arch_setidt, @function
|
.type __arch_setidt, @function
|
||||||
#endif
|
#endif
|
||||||
__arch_setidt:
|
__arch_setidt:
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
/* text */
|
/* text */
|
||||||
.section .text
|
.section .text
|
||||||
.global intr_disable
|
.global intr_disable
|
||||||
#ifndef __APPLE__
|
#ifndef __clang__
|
||||||
.type intr_disable, @function
|
.type intr_disable, @function
|
||||||
#endif
|
#endif
|
||||||
intr_disable:
|
intr_disable:
|
||||||
|
@ -18,7 +18,7 @@ intr_disable:
|
||||||
|
|
||||||
/* intr_enable */
|
/* intr_enable */
|
||||||
.global intr_enable
|
.global intr_enable
|
||||||
#ifndef __APPLE__
|
#ifndef __clang__
|
||||||
.type intr_enable, @function
|
.type intr_enable, @function
|
||||||
#endif
|
#endif
|
||||||
intr_enable:
|
intr_enable:
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
.section .text
|
.section .text
|
||||||
/* inb */
|
/* inb */
|
||||||
.global inb
|
.global inb
|
||||||
#ifndef __APPLE__
|
#ifndef __clang__
|
||||||
.type inb, @function
|
.type inb, @function
|
||||||
#endif
|
#endif
|
||||||
inb:
|
inb:
|
||||||
|
@ -24,7 +24,7 @@ inb:
|
||||||
|
|
||||||
/* iowait */
|
/* iowait */
|
||||||
.global iowait
|
.global iowait
|
||||||
#ifndef __APPLE__
|
#ifndef __clang__
|
||||||
.type iowait, @function
|
.type iowait, @function
|
||||||
#endif
|
#endif
|
||||||
iowait:
|
iowait:
|
||||||
|
@ -37,7 +37,7 @@ iowait:
|
||||||
|
|
||||||
/* outb */
|
/* outb */
|
||||||
.global outb
|
.global outb
|
||||||
#ifndef __APPLE__
|
#ifndef __clang__
|
||||||
.type outb, @function
|
.type outb, @function
|
||||||
#endif
|
#endif
|
||||||
outb:
|
outb:
|
||||||
|
|
|
@ -33,7 +33,7 @@ stack_top:
|
||||||
.section .text
|
.section .text
|
||||||
/* start */
|
/* start */
|
||||||
.global _start
|
.global _start
|
||||||
#ifndef __APPLE__
|
#ifndef __clang__
|
||||||
.type _start, @function
|
.type _start, @function
|
||||||
#endif
|
#endif
|
||||||
_start:
|
_start:
|
||||||
|
|
|
@ -33,7 +33,7 @@ stack_top:
|
||||||
.section .text
|
.section .text
|
||||||
/* start */
|
/* start */
|
||||||
.global _start
|
.global _start
|
||||||
#ifndef __APPLE__
|
#ifndef __clang__
|
||||||
.type _start, @function
|
.type _start, @function
|
||||||
#endif
|
#endif
|
||||||
_start:
|
_start:
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
.section .text
|
.section .text
|
||||||
/* multiboot_boot_kernel32 */
|
/* multiboot_boot_kernel32 */
|
||||||
.global multiboot_boot_kernel32
|
.global multiboot_boot_kernel32
|
||||||
#ifndef __APPLE__
|
#ifndef __clang__
|
||||||
.type multiboot_boot_kernel32, @function
|
.type multiboot_boot_kernel32, @function
|
||||||
#endif
|
#endif
|
||||||
multiboot_boot_kernel32:
|
multiboot_boot_kernel32:
|
||||||
|
@ -43,7 +43,7 @@ multiboot_boot_kernel32:
|
||||||
|
|
||||||
|
|
||||||
.global multiboot_boot_kernel64
|
.global multiboot_boot_kernel64
|
||||||
#ifndef __APPLE__
|
#ifndef __clang__
|
||||||
.type multiboot_boot_kernel64, @function
|
.type multiboot_boot_kernel64, @function
|
||||||
#endif
|
#endif
|
||||||
multiboot_boot_kernel64:
|
multiboot_boot_kernel64:
|
||||||
|
|
|
@ -50,7 +50,7 @@ multiboot_header:
|
||||||
.section .text
|
.section .text
|
||||||
/* multiboot_start */
|
/* multiboot_start */
|
||||||
.global _multiboot_start
|
.global _multiboot_start
|
||||||
# ifndef __APPLE__
|
# ifndef __clang__
|
||||||
.type _multiboot_start, @function
|
.type _multiboot_start, @function
|
||||||
# endif
|
# endif
|
||||||
_multiboot_start:
|
_multiboot_start:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user