aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-09-24 18:30:19 -0600
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2021-10-21 03:46:03 +0200
commit8d76744e50115ee4fa94ace1f15103b0d1cfe3fb (patch)
tree3da1590adbc362802cf6c52d38bf075afa363fc1
parent91aa8476b2e6a5391677e08280db0e36ca1dd143 (diff)
downloadu-boot-8d76744e50115ee4fa94ace1f15103b0d1cfe3fb.zip
u-boot-8d76744e50115ee4fa94ace1f15103b0d1cfe3fb.tar.gz
u-boot-8d76744e50115ee4fa94ace1f15103b0d1cfe3fb.tar.bz2
x86: Keep symbol information in u-boot ELF file
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 <sjg@chromium.org> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
-rw-r--r--arch/x86/config.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/config.mk b/arch/x86/config.mk
index 7a82425..589f2ae 100644
--- a/arch/x86/config.mk
+++ b/arch/x86/config.mk
@@ -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