Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
Disable clang for arm64 where local __thread is used.
Browse files Browse the repository at this point in the history
clang/llvm for aarch64 generates relocation references
to local symbols and that is not supported by Android
dynamic linker.

BUG: 25642296
Change-Id: If99aca50002eef4cce7735c6defef2fcb76f5a9b
  • Loading branch information
chih-hung committed Nov 20, 2015
1 parent 1aa3db0 commit e223eb9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libdw/Android.mk
Expand Up @@ -178,6 +178,9 @@ include $(CLEAR_VARS)
# Clang has no nested functions.
LOCAL_CLANG := false

# b/25642296, local __thread variable does not work with arm64 clang/llvm.
LOCAL_CLANG_arm64 := false

LOCAL_SRC_FILES := $(LIBDW_SRC_FILES)

LOCAL_C_INCLUDES := \
Expand Down
3 changes: 3 additions & 0 deletions libdwfl/Android.mk
Expand Up @@ -134,6 +134,9 @@ include $(CLEAR_VARS)
# Clang has no nested functions.
LOCAL_CLANG := false

# b/25642296, local __thread variable does not work with arm64 clang/llvm.
LOCAL_CLANG_arm64 := false

LOCAL_SRC_FILES := $(LIBDWFL_SRC_FILES)

LOCAL_C_INCLUDES := \
Expand Down
3 changes: 3 additions & 0 deletions libelf/Android.mk
Expand Up @@ -160,6 +160,9 @@ endif # linux

include $(CLEAR_VARS)

# b/25642296, local __thread variable does not work with arm64 clang/llvm.
LOCAL_CLANG_arm64 := false

LOCAL_SRC_FILES := $(LIBELF_SRC_FILES)

LOCAL_C_INCLUDES := \
Expand Down

0 comments on commit e223eb9

Please sign in to comment.