diff options
author | Cody Northrop <cnorthrop@google.com> | 2016-07-26 14:25:45 -0600 |
---|---|---|
committer | Cody Northrop <cnorthrop@google.com> | 2016-07-27 07:19:21 -0600 |
commit | 402eabde687c5b9bffa2b5d360cf15420b8b5d11 (patch) | |
tree | 69c15252f67372d05e27cc224a428c6f7089af49 /build-android | |
parent | ce6dcc110586550787020dd737b7e0af835d6a99 (diff) |
android: Lift global offset table size limit (-mxgot)
Currently the mips64 build for Android is broken due to size
increases of core_validation. If you disabled optimizations (-O0),
you'll get the following error:
relocation truncated to fit: R_MIPS_CALL16
The linker flag to lift the limit is -mxgot, documented here:
https://gcc.gnu.org/onlinedocs/gcc-4.0.0/gcc/MIPS-Options.html
It is a slight de-optimization for global symbol lookups (3 inst
instead of 1). Hopefully we aren't using global lookups in
performance critical code.
Diffstat (limited to 'build-android')
-rw-r--r-- | build-android/jni/Application.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build-android/jni/Application.mk b/build-android/jni/Application.mk index 42b2e03d..486548f8 100644 --- a/build-android/jni/Application.mk +++ b/build-android/jni/Application.mk @@ -17,5 +17,5 @@ APP_ABI := armeabi-v7a arm64-v8a x86 x86_64 mips mips64 APP_PLATFORM := android-22
APP_STL := gnustl_static
APP_MODULES := layer_utils VkLayer_core_validation VkLayer_image VkLayer_parameter_validation VkLayer_object_tracker VkLayer_threading VkLayer_swapchain VkLayer_unique_objects VkLayerValidationTests
-APP_CPPFLAGS += -std=c++11 -DVK_PROTOTYPES -Wall -Werror -Wno-unused-function -Wno-unused-const-variable
+APP_CPPFLAGS += -std=c++11 -DVK_PROTOTYPES -Wall -Werror -Wno-unused-function -Wno-unused-const-variable -mxgot
NDK_TOOLCHAIN_VERSION := clang
|