summaryrefslogtreecommitdiffstats
path: root/efi_memtest/Makefile
diff options
context:
space:
mode:
authorRegia König2021-04-13 13:24:50 +0200
committerRegia König2021-04-13 13:24:50 +0200
commit81a097d8db32a98b87df84201a619e9bb28e2dc4 (patch)
tree8e46f5a028ea1c121e86a159033c618008a52aa4 /efi_memtest/Makefile
parentNew Alignment of CFLAGS for better commentation (diff)
downloadmemtest86-81a097d8db32a98b87df84201a619e9bb28e2dc4.tar.gz
memtest86-81a097d8db32a98b87df84201a619e9bb28e2dc4.tar.xz
memtest86-81a097d8db32a98b87df84201a619e9bb28e2dc4.zip
Comment some CFLAGs
Diffstat (limited to 'efi_memtest/Makefile')
-rw-r--r--efi_memtest/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/efi_memtest/Makefile b/efi_memtest/Makefile
index 8917819..f024134 100644
--- a/efi_memtest/Makefile
+++ b/efi_memtest/Makefile
@@ -13,8 +13,8 @@ CFLAGS += -fno-builtin
CFLAGS += -fshort-wchar # EFI requires -fshort-wchar
CFLAGS += -fno-common
CFLAGS += -fno-strict-aliasing -g
-CFLAGS += -mno-red-zone
-CFLAGS += -fpie
+CFLAGS += -mno-red-zone # EFI uses Microsoft ABI so no red zone is defined
+CFLAGS += -fpie # use %rip-relative addressing wherever possible
CFLAGS += -fPIC
CFLAGS += -ffunction-sections
CFLAGS += -fdata-sections
@@ -22,7 +22,7 @@ CFLAGS += -flto
CFLAGS += -maccumulate-outgoing-args
CFLAGS += -fno-asynchronous-unwind-tables
CFLAGS += -nostdlib
-#CFLAGS += -fno-stack-protector
+#CFLAGS += -fno-stack-protector e
M64=-m64 -mcmodel=small