Use correct TLS codepath for linker
Replicate ARM libc build's HAVE_ARM_TLS_REGISTER preprocessor definition logic, to ensure that the runtime linker uses the correct codepath for accessing the TLS address
This commit is contained in:
parent
0b5db51ea6
commit
278d157f43
@ -27,7 +27,11 @@ LOCAL_CFLAGS += -DLINKER_TEXT_BASE=$(LINKER_TEXT_BASE)
|
|||||||
LOCAL_CFLAGS += -DLINKER_AREA_SIZE=$(LINKER_AREA_SIZE)
|
LOCAL_CFLAGS += -DLINKER_AREA_SIZE=$(LINKER_AREA_SIZE)
|
||||||
|
|
||||||
# we need to access the Bionic private header <bionic_tls.h>
|
# we need to access the Bionic private header <bionic_tls.h>
|
||||||
# in the linker
|
# in the linker; duplicate the HAVE_ARM_TLS_REGISTER definition
|
||||||
|
# from the libc build
|
||||||
|
ifeq ($(TARGET_ARCH)-$(ARCH_ARM_HAVE_TLS_REGISTER),arm-true)
|
||||||
|
LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER
|
||||||
|
endif
|
||||||
LOCAL_CFLAGS += -I$(LOCAL_PATH)/../libc/private
|
LOCAL_CFLAGS += -I$(LOCAL_PATH)/../libc/private
|
||||||
|
|
||||||
ifeq ($(TARGET_ARCH),arm)
|
ifeq ($(TARGET_ARCH),arm)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user