diff --git a/src/coreclr/CMakeLists.txt b/src/coreclr/CMakeLists.txt index 4dae5dd2e29490..1495cb736f8cb6 100644 --- a/src/coreclr/CMakeLists.txt +++ b/src/coreclr/CMakeLists.txt @@ -109,7 +109,7 @@ if(CLR_CMAKE_HOST_UNIX) endif() endif() - if(CLR_CMAKE_TARGET_LINUX AND CLR_CMAKE_TARGET_ARCH_I386) + if(CLR_CMAKE_TARGET_LINUX AND (CLR_CMAKE_TARGET_ARCH_I386 OR CLR_CMAKE_TARGET_ARCH_RISCV64)) add_linker_flag(-Wl,-z,notext) endif() diff --git a/src/coreclr/jit/instr.cpp b/src/coreclr/jit/instr.cpp index 97d0d94754a416..42580242c408ac 100644 --- a/src/coreclr/jit/instr.cpp +++ b/src/coreclr/jit/instr.cpp @@ -1487,6 +1487,7 @@ instruction CodeGen::ins_Move_Extend(var_types srcType, bool srcInReg) return INS_vmov; #else NYI("ins_Move_Extend"); + return INS_invalid; #endif } diff --git a/src/coreclr/vm/exceptionhandling.cpp b/src/coreclr/vm/exceptionhandling.cpp index 02c7398a9c9948..0a4ca9cfa78831 100644 --- a/src/coreclr/vm/exceptionhandling.cpp +++ b/src/coreclr/vm/exceptionhandling.cpp @@ -5857,7 +5857,7 @@ struct _Unwind_Exception; // This is a personality routine for TheUMEntryPrestub and UMThunkStub Unix asm stubs. // An exception propagating through these stubs is an unhandled exception. // This function dumps managed stack trace and terminates the current process. -EXTERN_C _Unwind_Reason_Code +EXTERN_C __attribute__((visibility("default"))) _Unwind_Reason_Code UnhandledExceptionHandlerUnix( IN int version, IN _Unwind_Action action,