diff options
author | Regia König | 2022-08-17 11:40:50 +0200 |
---|---|---|
committer | Regia König | 2022-08-17 11:40:50 +0200 |
commit | 930395bf73ba391d403dc4368d2b54b9757d3125 (patch) | |
tree | 8aceef5dffc816a37aaed8c35c74e0edb3defef0 | |
parent | Expand analyzation script (diff) | |
download | memtest86-930395bf73ba391d403dc4368d2b54b9757d3125.tar.gz memtest86-930395bf73ba391d403dc4368d2b54b9757d3125.tar.xz memtest86-930395bf73ba391d403dc4368d2b54b9757d3125.zip |
Add debug flag (-ggdb) to Makefile
-rw-r--r-- | GNU_efi_HelloWorld/.gitignore | 2 | ||||
-rw-r--r-- | GNU_efi_HelloWorld/Makefile | 8 | ||||
-rw-r--r-- | GNU_efi_HelloWorld/hello.o | bin | 2112 -> 0 bytes | |||
-rwxr-xr-x | GNU_efi_HelloWorld/hello.so | bin | 2171456 -> 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 Binary files differdeleted file mode 100644 index 37f6971..0000000 --- a/GNU_efi_HelloWorld/hello.o +++ /dev/null diff --git a/GNU_efi_HelloWorld/hello.so b/GNU_efi_HelloWorld/hello.so Binary files differdeleted file mode 100755 index 089f3f7..0000000 --- a/GNU_efi_HelloWorld/hello.so +++ /dev/null |