From 7ff07ad3213f3342678d2d03047b2e51d8b81748 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 13 Jan 2014 13:33:01 -0800 Subject: [PATCH] Add -Bsymbolic to the ld flags when linking the dynamic linker. We don't need this on architectures other than aarch64, and we're still investigating why we need it on aarch64, but it doesn't seem unreasonable to have this flag set when linking the dynamic linker anyway; it's clearly the intended behavior. Change-Id: I4fa1b4ae543a818979934bf818eabac03bb9154f --- linker/Android.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linker/Android.mk b/linker/Android.mk index 1bf3e9def..bdc54de44 100644 --- a/linker/Android.mk +++ b/linker/Android.mk @@ -16,7 +16,10 @@ LOCAL_SRC_FILES:= \ linker_phdr.cpp \ rt.cpp \ -LOCAL_LDFLAGS := -shared -Wl,--exclude-libs,ALL +LOCAL_LDFLAGS := \ + -shared \ + -Wl,-Bsymbolic \ + -Wl,--exclude-libs,ALL \ LOCAL_CFLAGS += \ -fno-stack-protector \