From 930395bf73ba391d403dc4368d2b54b9757d3125 Mon Sep 17 00:00:00 2001 From: Regia König Date: Wed, 17 Aug 2022 11:40:50 +0200 Subject: Add debug flag (-ggdb) to Makefile --- GNU_efi_HelloWorld/.gitignore | 2 ++ GNU_efi_HelloWorld/Makefile | 8 +++++++- GNU_efi_HelloWorld/hello.o | Bin 2112 -> 0 bytes GNU_efi_HelloWorld/hello.so | Bin 2171456 -> 0 bytes 4 files changed, 9 insertions(+), 1 deletion(-) delete mode 100644 GNU_efi_HelloWorld/hello.o delete mode 100755 GNU_efi_HelloWorld/hello.so 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 Binary files a/GNU_efi_HelloWorld/hello.o and /dev/null differ diff --git a/GNU_efi_HelloWorld/hello.so b/GNU_efi_HelloWorld/hello.so deleted file mode 100755 index 089f3f7..0000000 Binary files a/GNU_efi_HelloWorld/hello.so and /dev/null differ -- cgit v1.2.3-55-g7522