Use .intel_syntax directive instead of Makefile option in .S files.
This commit is contained in:
parent
d647ffa3a6
commit
999a4b5148
|
@ -3,6 +3,7 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
.intel_syntax
|
||||||
.global _start
|
.global _start
|
||||||
.text
|
.text
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
targets = kaem-optional hex0 hex1 hex2 catm M0
|
targets = kaem-optional hex0 hex1 hex2 catm M0
|
||||||
|
|
||||||
cc = clang
|
cc = clang
|
||||||
cflags = -ffreestanding -MMD -mno-red-zone -std=c11 -target x86_64-unknown-windows -masm=intel
|
cflags = -ffreestanding -MMD -mno-red-zone -target x86_64-unknown-windows
|
||||||
ld = lld-link
|
ld = lld-link
|
||||||
lflags = -subsystem:efi_application -nodefaultlib -dll
|
lflags = -subsystem:efi_application -nodefaultlib -dll
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
.intel_syntax
|
||||||
.global _start
|
.global _start
|
||||||
.text
|
.text
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
# but we need to leave stack space
|
# but we need to leave stack space
|
||||||
# rax, rcx, rdx, r8, r9, r10 and r11 are volatile and can be changed by called function
|
# rax, rcx, rdx, r8, r9, r10 and r11 are volatile and can be changed by called function
|
||||||
|
|
||||||
|
.intel_syntax
|
||||||
.global _start
|
.global _start
|
||||||
.text
|
.text
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
# Some of the functions are deliberately inlined at the slight expense of
|
# Some of the functions are deliberately inlined at the slight expense of
|
||||||
# binary size to avoid tricky jump calculations in hex0 code.
|
# binary size to avoid tricky jump calculations in hex0 code.
|
||||||
|
|
||||||
|
.intel_syntax
|
||||||
.global _start
|
.global _start
|
||||||
.text
|
.text
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
.intel_syntax
|
||||||
.global _start
|
.global _start
|
||||||
.text
|
.text
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
.intel_syntax
|
||||||
.global _start
|
.global _start
|
||||||
.text
|
.text
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue