projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c07484
)
riscv: enable -fdata-sections
author
Lukas Auer
<
[email protected]
>
Thu, 22 Nov 2018 10:26:16 +0000
(11:26 +0100)
committer
Andes
<
[email protected]
>
Mon, 26 Nov 2018 05:57:29 +0000
(13:57 +0800)
Enable the -fdata-sections compiler option for RISC-V. Buildman reports
the binary size decrease from this as 8365.3 bytes.
Signed-off-by: Lukas Auer <
[email protected]
>
Reviewed-by: Bin Meng <
[email protected]
>
Reviewed-by: Rick Chen <
[email protected]
>
arch/riscv/config.mk
patch
|
blob
|
history
diff --git
a/arch/riscv/config.mk
b/arch/riscv/config.mk
index 97e2d41c3daf7d019c650ae23231b449d9d459cb..ff4fe6400170c4adbab8ceec7e76871af30c8d77 100644
(file)
--- a/
arch/riscv/config.mk
+++ b/
arch/riscv/config.mk
@@
-27,7
+27,8
@@
CONFIG_STANDALONE_LOAD_ADDR = 0x00000000
LDFLAGS_STANDALONE += -T $(srctree)/examples/standalone/riscv.lds
PLATFORM_CPPFLAGS += -ffixed-gp -fpic
-PLATFORM_RELFLAGS += -fno-common -gdwarf-2 -ffunction-sections
+PLATFORM_RELFLAGS += -fno-common -gdwarf-2 -ffunction-sections \
+ -fdata-sections
LDFLAGS_u-boot += --gc-sections -static -pie
EFI_CRT0 := crt0_riscv_efi.o