arm: Enable -ffunction-sections / -fdata-sections / --gc-sections
[platform/kernel/u-boot.git] / arch / arm / cpu / ixp / config.mk
index 9149665..fd3c29f 100644 (file)
@@ -28,9 +28,8 @@ PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float -mbig-endian
 
 PLATFORM_CPPFLAGS += -mbig-endian -march=armv5te -mtune=strongarm1100
 
-# -fdata-sections triggers "section .bss overlaps section .rel.dyn" linker error
-PLATFORM_RELFLAGS += -ffunction-sections
-LDFLAGS_u-boot += --gc-sections
+PLATFORM_LDFLAGS += -EB
+USE_PRIVATE_LIBGCC = yes
 
 # =========================================================================
 #