mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
x86: Enable -fdata-sections always
We left -fdata-sections disabled for x86_64 before because we encountered random bugs that were at that time inexplicable. Turns out this really was just side effects of missing .bss* statements in the linker scripts. With those fixed, we can enable data sections for all targets. Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
6331cb2165
commit
1acbd0ea99
1 changed files with 1 additions and 3 deletions
|
@ -23,13 +23,11 @@ endif
|
|||
|
||||
ifeq ($(IS_32BIT),y)
|
||||
PLATFORM_CPPFLAGS += -march=i386 -m32
|
||||
# TODO: These break on x86_64; need to debug further
|
||||
PLATFORM_RELFLAGS += -fdata-sections
|
||||
else
|
||||
PLATFORM_CPPFLAGS += $(if $(CONFIG_SPL_BUILD),,-fpic) -fno-common -m64
|
||||
endif
|
||||
|
||||
PLATFORM_RELFLAGS += -ffunction-sections -fvisibility=hidden
|
||||
PLATFORM_RELFLAGS += -fdata-sections -ffunction-sections -fvisibility=hidden
|
||||
|
||||
PLATFORM_LDFLAGS += -Bsymbolic -Bsymbolic-functions
|
||||
PLATFORM_LDFLAGS += -m $(if $(IS_32BIT),elf_i386,elf_x86_64)
|
||||
|
|
Loading…
Add table
Reference in a new issue