OSDN Git Service

enable cortex branch predition errata workaround for armv7-a builds
authorErik Gilling <konkers@android.com>
Fri, 17 Jul 2009 22:57:10 +0000 (15:57 -0700)
committerErik Gilling <konkers@android.com>
Fri, 17 Jul 2009 22:58:42 +0000 (15:58 -0700)
Signed-off-by: Erik Gilling <konkers@android.com>
core/combo/arch/arm/armv7-a.mk
core/combo/linux-arm.mk
core/combo/select.mk

index ca30932..7a3ecc4 100644 (file)
@@ -17,3 +17,6 @@ arch_variant_cflags := \
     -march=armv7-a \
     -mfloat-abi=softfp \
     -mfpu=neon
+
+arch_variant_ldflags := \
+       -Wl,--fix-cortex-a8
\ No newline at end of file
index ec786c0..6011351 100644 (file)
@@ -96,6 +96,9 @@ $(combo_target)GLOBAL_CFLAGS += \
                        -include $(android_config_h) \
                        -I $(arch_include_dir)
 
+$(combo_target)GLOBAL_LDFLAGS += \
+                       $(arch_variant_ldflags)
+
 # We only need thumb interworking in cases where thumb support
 # is available in the architecture, and just to be sure, (and
 # since sometimes thumb-interwork appears to be default), we
@@ -177,6 +180,7 @@ $(TARGET_CXX) \
        $(call normalize-target-libraries,$(PRIVATE_ALL_SHARED_LIBRARIES)) \
        -o $@ \
        $(PRIVATE_LDFLAGS) \
+       $(TARGET_GLOBAL_LDFLAGS) \
        $(TARGET_LIBGCC)
 endef
 
@@ -193,6 +197,7 @@ $(TARGET_CXX) -nostdlib -Bdynamic -Wl,-T,$(BUILD_SYSTEM)/armelf.x \
        $(PRIVATE_ALL_OBJECTS) \
        $(call normalize-target-libraries,$(PRIVATE_ALL_STATIC_LIBRARIES)) \
        $(PRIVATE_LDFLAGS) \
+       $(TARGET_GLOBAL_LDFLAGS) \
        $(TARGET_LIBGCC) \
        $(TARGET_CRTEND_O)
 endef
@@ -204,6 +209,7 @@ $(TARGET_CXX) -nostdlib -Bstatic -Wl,-T,$(BUILD_SYSTEM)/armelf.x \
        $(TARGET_GLOBAL_LD_DIRS) \
        $(TARGET_CRTBEGIN_STATIC_O) \
        $(PRIVATE_LDFLAGS) \
+       $(TARGET_GLOBAL_LDFLAGS) \
        $(PRIVATE_ALL_OBJECTS) \
        $(call normalize-target-libraries,$(PRIVATE_ALL_STATIC_LIBRARIES)) \
        $(TARGET_LIBGCC) \
index 273b660..793b0a9 100644 (file)
@@ -39,6 +39,7 @@ $(combo_target)HAVE_KERNEL_MODULES := 0
 # These flags might (will) be overridden by the target makefiles
 $(combo_target)GLOBAL_CFLAGS := -fno-exceptions -Wno-multichar
 $(combo_target)RELEASE_CFLAGS := -O2 -g -fno-strict-aliasing
+$(combo_target)GLOBAL_LDFLAGS :=
 $(combo_target)GLOBAL_ARFLAGS := crs
 
 $(combo_target)EXECUTABLE_SUFFIX :=