Skip to content

Commit fb1dbb3

Browse files
Merge pull request #1317 from Unity-Technologies/macos-arm64-tlsoffset
Fix TLS offset lookup on macOS ARM64
2 parents a1b76c5 + 28aa55c commit fb1dbb3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mono/utils/mach-support-arm64.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,13 @@
2929

3030

3131
static const int known_tls_offsets[] = {
32+
#if defined(TARGET_OSX)
33+
0xE0, /* macOS 11.0 on Apple silicon */
34+
#else
3235
0x48, /*Found on iOS 6 */
3336
0xA4,
3437
0xA8,
38+
#endif // defined(HOST_OSX)
3539
};
3640

3741
#define TLS_PROBE_COUNT (sizeof (known_tls_offsets) / sizeof (int))

0 commit comments

Comments
 (0)