summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRegia König2022-08-17 11:40:50 +0200
committerRegia König2022-08-17 11:40:50 +0200
commit930395bf73ba391d403dc4368d2b54b9757d3125 (patch)
tree8aceef5dffc816a37aaed8c35c74e0edb3defef0
parentExpand analyzation script (diff)
downloadmemtest86-930395bf73ba391d403dc4368d2b54b9757d3125.tar.gz
memtest86-930395bf73ba391d403dc4368d2b54b9757d3125.tar.xz
memtest86-930395bf73ba391d403dc4368d2b54b9757d3125.zip
Add debug flag (-ggdb) to Makefile
-rw-r--r--GNU_efi_HelloWorld/.gitignore2
-rw-r--r--GNU_efi_HelloWorld/Makefile8
-rw-r--r--GNU_efi_HelloWorld/hello.obin2112 -> 0 bytes
-rwxr-xr-xGNU_efi_HelloWorld/hello.sobin2171456 -> 0 bytes
4 files changed, 9 insertions, 1 deletions
diff --git a/GNU_efi_HelloWorld/.gitignore b/GNU_efi_HelloWorld/.gitignore
index ca4663b..0bf07f1 100644
--- a/GNU_efi_HelloWorld/.gitignore
+++ b/GNU_efi_HelloWorld/.gitignore
@@ -1 +1,3 @@
gnu-efi
+*.o
+*.so
diff --git a/GNU_efi_HelloWorld/Makefile b/GNU_efi_HelloWorld/Makefile
index 448e3f7..e3a5956 100644
--- a/GNU_efi_HelloWorld/Makefile
+++ b/GNU_efi_HelloWorld/Makefile
@@ -10,7 +10,8 @@ EFI_CRT_OBJS = $(EFILIB)/crt0-efi-$(ARCH).o
EFI_LDS = $(EFILIB)/elf_$(ARCH)_efi.lds
CFLAGS = $(EFFINCS) -fno-stack-protector -fpic \
- -fshort-wchar -mno-red-zone -Wall
+ -fshort-wchar -mno-red-zone -Wall \
+ -ggdb
ifeq ($(ARCH),x86_64)
CFLAGS += -DEFI_FUNCTION_WRAPPER
@@ -29,3 +30,8 @@ hello.so: $(OBJS)
objcopy -j .text -j .sdata -j .data -j .dynamic \
-j .dynsym -j .rel -j .rela -j .reloc \
--target=efi-app-$(ARCH) $^ $@
+
+clear:
+ rm *.efi
+ rm *.o
+ rm *.so
diff --git a/GNU_efi_HelloWorld/hello.o b/GNU_efi_HelloWorld/hello.o
deleted file mode 100644
index 37f6971..0000000
--- a/GNU_efi_HelloWorld/hello.o
+++ /dev/null
Binary files differ
diff --git a/GNU_efi_HelloWorld/hello.so b/GNU_efi_HelloWorld/hello.so
deleted file mode 100755
index 089f3f7..0000000
--- a/GNU_efi_HelloWorld/hello.so
+++ /dev/null
Binary files differ