]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/powerpc/config.mk
POWERPC: enable --gc-sections and -ffunction-sections -fdata-sections
[karo-tx-uboot.git] / arch / powerpc / config.mk
index 5bc849c5e43c8529d68ea8807f55919620ae0e18..2912604afcb1a388554736be5a3d4134153b496e 100644 (file)
@@ -25,9 +25,9 @@ CROSS_COMPILE ?= ppc_8xx-
 
 STANDALONE_LOAD_ADDR = 0x40000
 
-PLATFORM_RELFLAGS += -mrelocatable
+PLATFORM_RELFLAGS += -mrelocatable -ffunction-sections -fdata-sections
 PLATFORM_CPPFLAGS += -DCONFIG_PPC -D__powerpc__
-PLATFORM_LDFLAGS  += -n
+PLATFORM_LDFLAGS  += -n --gc-sections
 
 ifdef CONFIG_SYS_LDSCRIPT
 # need to strip off double quotes