projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
arm: Enable -ffunction-sections / -fdata-sections / --gc-sections
[platform/kernel/u-boot.git]
/
arch
/
arm
/
config.mk
diff --git
a/arch/arm/config.mk
b/arch/arm/config.mk
index
e7839be
..
dc64160
100644
(file)
--- a/
arch/arm/config.mk
+++ b/
arch/arm/config.mk
@@
-31,6
+31,9
@@
CONFIG_STANDALONE_LOAD_ADDR = 0xc100000
endif
endif
endif
endif
+LDFLAGS_FINAL += --gc-sections
+PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
+
# Support generic board on ARM
__HAVE_ARCH_GENERIC_BOARD := y
# Support generic board on ARM
__HAVE_ARCH_GENERIC_BOARD := y
@@
-87,9
+90,7
@@
endif
endif
# needed for relocation
endif
# needed for relocation
-ifndef CONFIG_NAND_SPL
LDFLAGS_u-boot += -pie
LDFLAGS_u-boot += -pie
-endif
#
# FIXME: binutils versions < 2.22 have a bug in the assembler where
#
# FIXME: binutils versions < 2.22 have a bug in the assembler where