OSDN Git Service

Add -Bsymbolic to the ld flags when linking the dynamic linker.
authorElliott Hughes <enh@google.com>
Mon, 13 Jan 2014 21:33:01 +0000 (13:33 -0800)
committerElliott Hughes <enh@google.com>
Mon, 13 Jan 2014 21:33:01 +0000 (13:33 -0800)
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

index 1bf3e9d..bdc54de 100644 (file)
@@ -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 \