Keep symbols for linker
Bug: 17011146
(cherry picked from commit ad5e8b50737144833233d47fe04deb3fa0284df2)
Change-Id: Ib1d3f8d6d38af98586658e01ed1ec79d2c5b4d42
diff --git a/linker/Android.mk b/linker/Android.mk
index 68e801d..5853c90 100644
--- a/linker/Android.mk
+++ b/linker/Android.mk
@@ -57,6 +57,10 @@
LOCAL_MODULE_STEM_64 := linker64
LOCAL_MULTILIB := both
+# Leave the symbols in the shared library so that stack unwinders can produce
+# meaningful name resolution.
+LOCAL_STRIP_MODULE := keep_symbols
+
include $(LOCAL_PATH)/linker_executable.mk
ifdef TARGET_2ND_ARCH
LOCAL_2ND_ARCH_VAR_PREFIX := $(TARGET_2ND_ARCH_VAR_PREFIX)