mirror of
https://xff.cz/git/u-boot/
synced 2025-09-26 04:51:17 +02:00
Partially revert "efi_loader: Rename sections to allow for implicit data"
This partially reverts commit7e21fbca26
. That change broke sandbox EFI support for unknown reasons. It also changes sandbox to use--gc-sections which we don't want. For now I am just reverting the sandbox portion as presumably this change is safe on other architectures. Fixes:7e21fbca26
(efi_loader: Rename sections to allow for implicit data) Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -5,9 +5,6 @@ PLATFORM_CPPFLAGS += -D__SANDBOX__ -U_FORTIFY_SOURCE
|
|||||||
PLATFORM_CPPFLAGS += -DCONFIG_ARCH_MAP_SYSMEM
|
PLATFORM_CPPFLAGS += -DCONFIG_ARCH_MAP_SYSMEM
|
||||||
PLATFORM_LIBS += -lrt
|
PLATFORM_LIBS += -lrt
|
||||||
|
|
||||||
LDFLAGS_FINAL += --gc-sections
|
|
||||||
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
|
|
||||||
|
|
||||||
# Define this to avoid linking with SDL, which requires SDL libraries
|
# Define this to avoid linking with SDL, which requires SDL libraries
|
||||||
# This can solve 'sdl-config: Command not found' errors
|
# This can solve 'sdl-config: Command not found' errors
|
||||||
ifneq ($(NO_SDL),)
|
ifneq ($(NO_SDL),)
|
||||||
|
@@ -22,9 +22,8 @@ SECTIONS
|
|||||||
}
|
}
|
||||||
|
|
||||||
.efi_runtime : {
|
.efi_runtime : {
|
||||||
*(.text.efi_runtime*)
|
*(efi_runtime_text)
|
||||||
*(.rodata.efi_runtime*)
|
*(efi_runtime_data)
|
||||||
*(.data.efi_runtime*)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.__efi_runtime_stop : {
|
.__efi_runtime_stop : {
|
||||||
@@ -37,8 +36,8 @@ SECTIONS
|
|||||||
}
|
}
|
||||||
|
|
||||||
.efi_runtime_rel : {
|
.efi_runtime_rel : {
|
||||||
*(.rel*.efi_runtime)
|
*(.relefi_runtime_text)
|
||||||
*(.rel*.efi_runtime.*)
|
*(.relefi_runtime_data)
|
||||||
}
|
}
|
||||||
|
|
||||||
.efi_runtime_rel_stop :
|
.efi_runtime_rel_stop :
|
||||||
|
Reference in New Issue
Block a user