diff --git a/src/coreclr/nativeaot/Runtime/unix/PalRedhawkUnix.cpp b/src/coreclr/nativeaot/Runtime/unix/PalRedhawkUnix.cpp index 79a9476e3b7641..6ca107cc0f9ae5 100644 --- a/src/coreclr/nativeaot/Runtime/unix/PalRedhawkUnix.cpp +++ b/src/coreclr/nativeaot/Runtime/unix/PalRedhawkUnix.cpp @@ -480,10 +480,11 @@ EXTERN_C intptr_t* RhpGetThunkData() } #endif //FEATURE_EMULATED_TLS -EXTERN_C intptr_t RhGetCurrentThunkContext() +FCIMPL0(intptr_t, RhGetCurrentThunkContext) { return tls_thunkData; } +FCIMPLEND // Register the thread with OS to be notified when thread is about to be destroyed // It fails fast if a different thread was already registered.