libc: continue to use Android's custom linker script

By default, Android no longer compiles code using it's custom
linker script /build/core/armelf.xsc. However, this causes
problems for libc. Certain programs linked using older versions
of GOLD expect to export __exidx_start and __exidx_end.
Removing the custom linker script causes not to export
those symbols.

For now, continue using the old linker script, until we can
figure out a better solution.

Change-Id: Iaf002afd63a58b848818da24e5a4525620dc4d74
diff --git a/libc/ b/libc/
index 885fb93..d158dbc 100644
--- a/libc/
+++ b/libc/
@@ -659,6 +659,12 @@
 # see libc/bionic/pthread_debug.c for details
+ifeq ($(TARGET_ARCH),arm)
+# TODO: At some point, we need to remove this custom linker script.
+LOCAL_LDFLAGS := -Wl,-T,$(BUILD_SYSTEM)/armelf.xsc
 LOCAL_C_INCLUDES := $(libc_common_c_includes)