aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/config/aarch64
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2014-09-08 13:56:43 -0700
committerAndrew Hsieh <andrewhsieh@google.com>2014-09-08 13:56:43 -0700
commitaf4ca15ba1d57c7ff967c8cd8a71423b1893ea66 (patch)
tree822566bb7606d617278095f60796bc198db8a0e9 /gcc-4.9/gcc/config/aarch64
parent142855c94b3bc9e140a1b55c1a424259285d751c (diff)
downloadtoolchain_gcc-af4ca15ba1d57c7ff967c8cd8a71423b1893ea66.tar.gz
toolchain_gcc-af4ca15ba1d57c7ff967c8cd8a71423b1893ea66.tar.bz2
toolchain_gcc-af4ca15ba1d57c7ff967c8cd8a71423b1893ea66.zip
Change aarch64-linux-android dynamic linker to /system/bin/linker64
Set bionic linker to /system/bin/linker64 for aarch64 in Android. The default /system/bin/linker causes run-time error reads: /system/bin/sh: /path/to/your/app: Accessing a corrupted shared library Change-Id: Ieaaebd267c87e7803372171478ae8f8b9ab71dfe
Diffstat (limited to 'gcc-4.9/gcc/config/aarch64')
-rw-r--r--gcc-4.9/gcc/config/aarch64/aarch64-linux.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/config/aarch64/aarch64-linux.h b/gcc-4.9/gcc/config/aarch64/aarch64-linux.h
index 3a180bb89..3b191856d 100644
--- a/gcc-4.9/gcc/config/aarch64/aarch64-linux.h
+++ b/gcc-4.9/gcc/config/aarch64/aarch64-linux.h
@@ -25,6 +25,8 @@
#define RUNTIME_ROOT_PREFIX ""
#endif
#define GLIBC_DYNAMIC_LINKER RUNTIME_ROOT_PREFIX "/lib/ld-linux-aarch64%{mbig-endian:_be}.so.1"
+#define BIONIC_DYNAMIC_LINKER RUNTIME_ROOT_PREFIX "/system/bin/linker64"
+
#define CPP_SPEC "%{pthread:-D_REENTRANT}"