UnmanagedCallersOnlyAttribute in load_assembly_and_get_function_pointer (#35763)
authorAaron Robinson <arobins@microsoft.com>
Tue, 5 May 2020 18:03:02 +0000 (11:03 -0700)
committerGitHub <noreply@github.com>
Tue, 5 May 2020 18:03:02 +0000 (11:03 -0700)
commit3247a54a4263dc2a492b740223b6f062672f70d7
tree71be48a028bb7f0db20843816cb207426cafc0e6
parent7058aa0f0f279b81caee802ff8db83e0640d6675
UnmanagedCallersOnlyAttribute in load_assembly_and_get_function_pointer (#35763)

* Add support for UnmanagedCallersOnlyAttribute in the load_assembly_and_get_function_pointer API.

* Handle x86 of UnmanagedCallersOnly in managed GetFunctionPointer() API.
15 files changed:
src/coreclr/src/System.Private.CoreLib/src/Internal/Runtime/InteropServices/ComponentActivator.cs
src/coreclr/src/tools/Common/JitInterface/CorInfoImpl.cs
src/coreclr/src/tools/crossgen2/ILCompiler.ReadyToRun/JitInterface/CorInfoImpl.ReadyToRun.cs
src/coreclr/src/vm/comdelegate.cpp
src/coreclr/src/vm/comdelegate.h
src/coreclr/src/vm/corhost.cpp
src/coreclr/src/vm/dllimportcallback.cpp
src/coreclr/src/vm/dllimportcallback.h
src/coreclr/src/vm/jitinterface.cpp
src/coreclr/src/vm/runtimehandles.cpp
src/installer/corehost/cli/coreclr_delegates.h
src/installer/corehost/cli/test/nativehost/host_context_test.cpp
src/installer/test/Assets/TestProjects/ComponentWithNoDependencies/Component.cs
src/installer/test/HostActivation.Tests/NativeHosting/ComponentActivation.cs
src/libraries/System.Private.CoreLib/src/Resources/Strings.resx