]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/cpu/ixp/config.mk
arm: Enable -ffunction-sections / -fdata-sections / --gc-sections
[u-boot] / arch / arm / cpu / ixp / config.mk
index deca3f4d550c5443ebe8e25fee6426dccd8daff7..fd3c29f62428a9931aab31ad6c1293107c663c59 100644 (file)
@@ -27,9 +27,14 @@ BIG_ENDIAN = y
 PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float -mbig-endian
 
 PLATFORM_CPPFLAGS += -mbig-endian -march=armv5te -mtune=strongarm1100
+
+PLATFORM_LDFLAGS += -EB
+USE_PRIVATE_LIBGCC = yes
+
 # =========================================================================
 #
 # Supply options according to compiler version
 #
 # =========================================================================
-PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
+PF_RELFLAGS_SLB_AT := $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
+PLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT)