mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 11:02:04 +08:00
[compiler-rt][TSan] Fix compilation error on Android x86 (#162385)
This commit is contained in:
@@ -415,7 +415,7 @@ void InitializePlatform() {
|
||||
// is not compiled with -pie.
|
||||
#if !SANITIZER_GO
|
||||
{
|
||||
# if SANITIZER_LINUX && (defined(__aarch64__) || defined(__loongarch_lp64))
|
||||
# if INIT_LONGJMP_XOR_KEY
|
||||
// Initialize the xor key used in {sig}{set,long}jump.
|
||||
InitializeLongjmpXorKey();
|
||||
# endif
|
||||
@@ -486,7 +486,7 @@ int ExtractRecvmsgFDs(void *msgp, int *fds, int nfd) {
|
||||
|
||||
// Reverse operation of libc stack pointer mangling
|
||||
static uptr UnmangleLongJmpSp(uptr mangled_sp) {
|
||||
# if SANITIZER_ANDROID
|
||||
# if SANITIZER_ANDROID && INIT_LONGJMP_XOR_KEY
|
||||
if (longjmp_xor_key == 0) {
|
||||
// bionic libc initialization process: __libc_init_globals ->
|
||||
// __libc_init_vdso (calls strcmp) -> __libc_init_setjmp_cookie. strcmp is
|
||||
|
||||
Reference in New Issue
Block a user