summaryrefslogtreecommitdiffstats
path: root/Makefile_for_memtest_gdb
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile_for_memtest_gdb')
-rw-r--r--Makefile_for_memtest_gdb8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile_for_memtest_gdb b/Makefile_for_memtest_gdb
index 3413741..aa1e692 100644
--- a/Makefile_for_memtest_gdb
+++ b/Makefile_for_memtest_gdb
@@ -14,7 +14,9 @@ else
endif
CFLAGS = -std=c11 -Wall -Wextra -Wshadow -m64 -march=x86-64 -mno-mmx -mno-sse -mno-sse2 \
- -fpic -fno-builtin -ffreestanding -fomit-frame-pointer -fno-stack-protector
+ -fno-builtin -ffreestanding -fomit-frame-pointer -fno-stack-protector
+
+#-fpic
## NEW PART
CFLAGS += -ggdb3 -O0 -DEFI_DEBUG=1
@@ -83,7 +85,7 @@ all: memtest.efi
-include $(subst .o,.d,$(APP_OBJS))
boot/%.o: boot/%.s
- $(AS) $< -o $@
+ $(AS) $< -o $@
boot/startup.s: ../boot/startup64.S ../boot/boot.h
@mkdir -p boot
@@ -91,7 +93,7 @@ boot/startup.s: ../boot/startup64.S ../boot/boot.h
boot/%.s: ../boot/%.S ../boot/boot.h
@mkdir -p boot
- $(CC) -E -traditional -fPIC -I../boot -o $@ $<
+ $(CC) -E -traditional -I../boot -o $@ $<
boot/efisetup.o: ../boot/efisetup.c
@mkdir -p boot