diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets index 1b38cbd3efa37..14a0309902c2d 100644 --- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets +++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets @@ -39,15 +39,17 @@ The .NET Foundation licenses this file to you under the MIT license. x86_64 aarch64 arm64 - arm + armv7 gnu - gnueabihf + android21 + musl + gnueabihf + androideabi21 + musleabihf $(CrossCompileArch)-linux-$(CrossCompileAbi) - $(CrossCompileArch)-alpine-linux-musl - $(CrossCompileArch)-linux-android21 $(CrossCompileArch)-unknown-freebsd12 $ORIGIN diff --git a/src/coreclr/nativeaot/Runtime/unix/unixasmmacrosarm.inc b/src/coreclr/nativeaot/Runtime/unix/unixasmmacrosarm.inc index 9ec98a0881b84..5a1cef176e102 100644 --- a/src/coreclr/nativeaot/Runtime/unix/unixasmmacrosarm.inc +++ b/src/coreclr/nativeaot/Runtime/unix/unixasmmacrosarm.inc @@ -276,8 +276,12 @@ C_FUNC(\Name): .endm .macro INLINE_GETTHREAD +#ifdef FEATURE_EMULATED_TLS + bl C_FUNC(RhpGetThread) +#else // Inlined version of call C_FUNC(RhpGetThread) INLINE_GET_TLS_VAR tls_CurrentThread +#endif .endm .macro INLINE_THREAD_UNHIJACK threadReg, trashReg1, trashReg2