mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
arc: Eliminate unused code and data with GCC's garbage collector
Finally GCC's garbage collector works on ARC so let's use it. That's what I may see for HSDK: Before: text data bss dec hex filename 290153 10068 222616 522837 7fa55 u-boot After: text data bss dec hex filename 261999 9460 222360 493819 788fb u-boot Overall ~5% of memory footprint saved. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
This commit is contained in:
parent
0a097ba54b
commit
fac4790491
1 changed files with 2 additions and 1 deletions
|
@ -51,9 +51,10 @@ PLATFORM_CPPFLAGS += -mcpu=archs
|
||||||
endif
|
endif
|
||||||
|
|
||||||
PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -gdwarf-2 -mno-sdata
|
PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -gdwarf-2 -mno-sdata
|
||||||
|
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
|
||||||
|
|
||||||
# Needed for relocation
|
# Needed for relocation
|
||||||
LDFLAGS_FINAL += -pie
|
LDFLAGS_FINAL += -pie --gc-sections
|
||||||
|
|
||||||
# Load address for standalone apps
|
# Load address for standalone apps
|
||||||
CONFIG_STANDALONE_LOAD_ADDR ?= 0x82000000
|
CONFIG_STANDALONE_LOAD_ADDR ?= 0x82000000
|
||||||
|
|
Loading…
Add table
Reference in a new issue