Use .intel_syntax directive instead of Makefile option in .S files.

This commit is contained in:
Andrius Štikonas 2022-09-27 22:52:18 +01:00
parent d647ffa3a6
commit 999a4b5148
7 changed files with 7 additions and 2 deletions

View File

@ -3,6 +3,7 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later
.intel_syntax
.global _start
.text

View File

@ -5,7 +5,7 @@
targets = kaem-optional hex0 hex1 hex2 catm M0
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
lflags = -subsystem:efi_application -nodefaultlib -dll

View File

@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later
.intel_syntax
.global _start
.text

View File

@ -11,6 +11,7 @@
# but we need to leave stack space
# rax, rcx, rdx, r8, r9, r10 and r11 are volatile and can be changed by called function
.intel_syntax
.global _start
.text

View File

@ -6,6 +6,7 @@
# Some of the functions are deliberately inlined at the slight expense of
# binary size to avoid tricky jump calculations in hex0 code.
.intel_syntax
.global _start
.text

View File

@ -3,6 +3,7 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later
.intel_syntax
.global _start
.text

View File

@ -3,6 +3,7 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later
.intel_syntax
.global _start
.text