From 2a4d892c7f14d849b5f349528ed2b921b19f5645 Mon Sep 17 00:00:00 2001 From: Dimitry Ivanov Date: Thu, 16 Feb 2017 12:03:21 -0800 Subject: [PATCH] Revert "Revert "Make libc.so global"" This reverts commit 65236d43e8e8ea2155c0d64e35f00b3c30b21147. Bug: http://b/35417197 Bug: http://b/35338922 Test: vogar --classpath out/target/common/obj/JAVA_LIBRARIES/core-tests_intermediates/classes.jack --mode=device --variant=X32 dalvik.system.JniTest#testGetSuperclass Change-Id: Ibf3bb7396e7d11ebe95e2f9267d0fc4af3fbe8c5 --- libc/Android.bp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libc/Android.bp b/libc/Android.bp index 6aebb3c7a..f663a978a 100644 --- a/libc/Android.bp +++ b/libc/Android.bp @@ -1665,6 +1665,8 @@ cc_library { keep_symbols: true, }, + ldflags: ["-Wl,-z,global"], + // Do not pack libc.so relocations; see http://b/20645321 for details. pack_relocations: false,