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 libc.so to export __exidx_start and __exidx_end.
Removing the custom linker script causes libc.so not to export
those symbols.

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

Change-Id: Iaf002afd63a58b848818da24e5a4525620dc4d74
This commit is contained in:
Nick Kralevich 2012-04-26 09:54:48 -07:00
parent 94179a509e
commit b091dd9bf2

View File

@ -659,6 +659,12 @@ include $(CLEAR_VARS)
# see libc/bionic/pthread_debug.c for details
LOCAL_CFLAGS := $(libc_common_cflags) -DPTHREAD_DEBUG -DPTHREAD_DEBUG_ENABLED=0
ifeq ($(TARGET_ARCH),arm)
# TODO: At some point, we need to remove this custom linker script.
LOCAL_LDFLAGS := -Wl,-T,$(BUILD_SYSTEM)/armelf.xsc
endif
LOCAL_C_INCLUDES := $(libc_common_c_includes)
LOCAL_SRC_FILES := \