mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
sh: Enable ffunction-sections and fdata-sections
Enable these two options to let compiler eliminate unused code. On R2Dplus, this results in considerable amount of saved space: text data bss dec hex filename - 266580 13196 39076 318852 4dd84 u-boot + 220214 12797 38745 271756 4258c u-boot Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Cc: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
03578d940d
commit
56f01746ab
1 changed files with 1 additions and 1 deletions
|
@ -13,6 +13,6 @@ LDFLAGS_STANDALONE += -EB
|
|||
endif
|
||||
|
||||
PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__
|
||||
PLATFORM_RELFLAGS += -fpic
|
||||
PLATFORM_RELFLAGS += -fpic -ffunction-sections -fdata-sections
|
||||
LDFLAGS_FINAL = --gc-sections
|
||||
PLATFORM_RELFLAGS += -ffixed-r13
|
||||
|
|
Loading…
Reference in a new issue