]> Git Repo - J-u-boot.git/commitdiff
x86: Keep symbol information in u-boot ELF file
authorSimon Glass <[email protected]>
Sat, 25 Sep 2021 00:30:19 +0000 (18:30 -0600)
committerHeinrich Schuchardt <[email protected]>
Thu, 21 Oct 2021 01:46:03 +0000 (03:46 +0200)
At present this information is stripped when linking. It is useful to keep
it around. Strip it from the .efi files instead.

Signed-off-by: Simon Glass <[email protected]>
Signed-off-by: Heinrich Schuchardt <[email protected]>
arch/x86/config.mk

index 7a8242562dbfe1da80a9fbd998f2841d7f4a859e..589f2aed2bc25746c8e75ae4025f79a88cf9b39a 100644 (file)
@@ -37,7 +37,7 @@ KBUILD_LDFLAGS += -m $(if $(IS_32BIT),elf_i386,elf_x86_64)
 LDFLAGS_EFI_PAYLOAD := -Bsymbolic -Bsymbolic-functions -shared --no-undefined -s
 
 OBJCOPYFLAGS_EFI := -j .text -j .sdata -j .data -j .dynamic -j .dynsym \
-       -j .rel -j .rela -j .reloc
+       -j .rel -j .rela -j .reloc --strip-all
 
 # Compiler flags to be added when building UEFI applications
 CFLAGS_EFI := -fpic -fshort-wchar
@@ -65,7 +65,7 @@ CPPFLAGS_crt0-efi-$(EFIARCH).o += $(CFLAGS_EFI)
 ifeq ($(CONFIG_EFI_APP),y)
 
 PLATFORM_CPPFLAGS += $(CFLAGS_EFI)
-LDFLAGS_FINAL += -znocombreloc -shared -s
+LDFLAGS_FINAL += -znocombreloc -shared
 LDSCRIPT := $(LDSCRIPT_EFI)
 
 else
This page took 0.035054 seconds and 4 git commands to generate.