aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2014-04-15 11:54:06 -0700
committerAndrew Hsieh <andrewhsieh@google.com>2014-04-15 11:54:06 -0700
commit50536c20affe5d720dd8164a39b82f8c78881911 (patch)
tree460a663947d97f06e9ad0eb761e13377f5d97ec8
parent22261a3f9b50dfb567ca072ec7ca2c77fd64e531 (diff)
downloadbuild-50536c20affe5d720dd8164a39b82f8c78881911.tar.gz
Add -Wl,-maarch64linux
The "-maarch64linux" switch is needed before aarch64-*4.8 is rebuilt with backport of upstream patch, see https://android-review.googlesource.com/#/c/91099/ The existing ld.bfd is fine because it's configured to support aarch64linux only. ld.mcld (see https://android-review.googlesource.com/#/c/91047) needs explicit emulation switch because it supports multiple targets Change-Id: Idc1a491c5722ea9e26db917b667b1000bccc1f60
-rw-r--r--core/combo/TARGET_linux-arm64.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/combo/TARGET_linux-arm64.mk b/core/combo/TARGET_linux-arm64.mk
index e894f6d9b3..6bb3754fc6 100644
--- a/core/combo/TARGET_linux-arm64.mk
+++ b/core/combo/TARGET_linux-arm64.mk
@@ -114,6 +114,7 @@ TARGET_GLOBAL_LDFLAGS += \
-Wl,-z,noexecstack \
-Wl,--warn-shared-textrel \
-Wl,--fatal-warnings \
+ -Wl,-maarch64linux \
$(arch_variant_ldflags)
TARGET_GLOBAL_CPPFLAGS += -fvisibility-inlines-hidden