diff options
author | Stephen Hines <srhines@google.com> | 2015-04-10 16:35:53 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-04-10 16:35:53 +0000 |
commit | 55acb92d825f12469e855485b23bfcd5e2461978 (patch) | |
tree | 3f167515e59a9f9fe5bfb1a623cdc6d06432e2ae /core | |
parent | 948f67b0e7b3863488fd4a12a6797311d4c30508 (diff) | |
parent | d263924fe4d1203e97787e123ddd951879945bdd (diff) | |
download | build-55acb92d825f12469e855485b23bfcd5e2461978.zip build-55acb92d825f12469e855485b23bfcd5e2461978.tar.gz build-55acb92d825f12469e855485b23bfcd5e2461978.tar.bz2 |
am d263924f: am 69bd465b: Merge "Don\'t use -Wl,--fix-cortex-a8 for Cortex A7, A9, A15, Krait or Denver"
* commit 'd263924fe4d1203e97787e123ddd951879945bdd':
Don't use -Wl,--fix-cortex-a8 for Cortex A7, A9, A15, Krait or Denver
Diffstat (limited to 'core')
-rw-r--r-- | core/combo/arch/arm/armv7-a-neon.mk | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/core/combo/arch/arm/armv7-a-neon.mk b/core/combo/arch/arm/armv7-a-neon.mk index d535afc..99f17aa 100644 --- a/core/combo/arch/arm/armv7-a-neon.mk +++ b/core/combo/arch/arm/armv7-a-neon.mk @@ -16,14 +16,23 @@ ifneq (,$(filter cortex-a15 krait denver,$(TARGET_$(combo_2nd_arch_prefix)CPU_VA # Fake an ARM compiler flag as these processors support LPAE which GCC/clang # don't advertise. arch_variant_cflags += -D__ARM_FEATURE_LPAE=1 + arch_variant_ldflags := \ + -Wl,--no-fix-cortex-a8 else ifeq ($(strip $(TARGET_$(combo_2nd_arch_prefix)CPU_VARIANT)),cortex-a8) arch_variant_cflags := -mcpu=cortex-a8 + arch_variant_ldflags := \ + -Wl,--fix-cortex-a8 else ifeq ($(strip $(TARGET_$(combo_2nd_arch_prefix)CPU_VARIANT)),cortex-a7) arch_variant_cflags := -mcpu=cortex-a7 + arch_variant_ldflags := \ + -Wl,--no-fix-cortex-a8 else arch_variant_cflags := -march=armv7-a + # Generic ARM might be a Cortex A8 -- better safe than sorry + arch_variant_ldflags := \ + -Wl,--fix-cortex-a8 endif endif endif @@ -31,6 +40,3 @@ endif arch_variant_cflags += \ -mfloat-abi=softfp \ -mfpu=neon - -arch_variant_ldflags := \ - -Wl,--fix-cortex-a8 |