diff --git a/core/clang/mips.mk b/core/clang/mips.mk index 08daf403a3..70832a33d9 100644 --- a/core/clang/mips.mk +++ b/core/clang/mips.mk @@ -14,6 +14,11 @@ CLANG_CONFIG_mips_UNKNOWN_CFLAGS := \ -msynci \ -mno-fused-madd +# Temporary workaround for Mips clang++ problem, creates +# relocated ptrs in read-only pic .gcc_exception_table; +# permanent fix pending at http://reviews.llvm.org/D9669 +CLANG_CONFIG_mips_UNKNOWN_CFLAGS += -Wl,--warn-shared-textrel + # We don't have any mips flags to substitute yet. define subst-clang-incompatible-mips-flags $(1) diff --git a/core/clang/mips64.mk b/core/clang/mips64.mk index 612175c563..ba9c1d14b5 100644 --- a/core/clang/mips64.mk +++ b/core/clang/mips64.mk @@ -14,6 +14,11 @@ CLANG_CONFIG_mips64_UNKNOWN_CFLAGS := \ -msynci \ -mno-fused-madd +# Temporary workaround for Mips clang++ problem creating +# relocated ptrs in read-only pic .gcc_exception_table; +# permanent fix pending at http://reviews.llvm.org/D9669 +CLANG_CONFIG_mips64_UNKNOWN_CFLAGS += -Wl,--warn-shared-textrel + # We don't have any mips64 flags to substitute yet. define subst-clang-incompatible-mips64-flags $(1)