Unify macOS ARM64 write protection holders with W^X ones (#54067)
authorJan Vorlicek <jan.vorlicek@volny.cz>
Sat, 12 Jun 2021 07:54:58 +0000 (09:54 +0200)
committerGitHub <noreply@github.com>
Sat, 12 Jun 2021 07:54:58 +0000 (09:54 +0200)
commitcc6d3147ff1f10d2ee2b0751cf799fc4cc1abbae
tree6f152bfc4ba7880faff9b2189e25d6b85743771a
parent2a011f802b83051d1381f7800131ca5734b4c59e
Unify macOS ARM64 write protection holders with W^X ones (#54067)

* Unify macOS ARM64 write protection holders with W^X ones

This change removes the original holders that were added for changing
memory protection for executable code and moves the actual switching to
the recently added W^X holders.

The unixexports files don't support target specific symbols. So I needed
to export a dummy version of the PAL_JitWriteProtect for macOS x64.
32 files changed:
src/coreclr/debug/ee/controller.cpp
src/coreclr/debug/ee/debugger.cpp
src/coreclr/debug/ee/debugger.h
src/coreclr/debug/inc/amd64/primitives.h
src/coreclr/debug/inc/arm/primitives.h
src/coreclr/debug/inc/arm64/primitives.h
src/coreclr/debug/inc/i386/primitives.h
src/coreclr/dlls/mscordac/mscordac_unixexports.src
src/coreclr/inc/executableallocator.h
src/coreclr/inc/loaderheap.h
src/coreclr/pal/inc/pal.h
src/coreclr/pal/src/map/virtual.cpp
src/coreclr/vm/arm64/arm64singlestepper.cpp
src/coreclr/vm/arm64/asmhelpers.S
src/coreclr/vm/arm64/asmhelpers.asm
src/coreclr/vm/arm64/stubs.cpp
src/coreclr/vm/callcounting.cpp
src/coreclr/vm/callhelpers.cpp
src/coreclr/vm/ceemain.cpp
src/coreclr/vm/codeman.cpp
src/coreclr/vm/comdelegate.cpp
src/coreclr/vm/dllimportcallback.cpp
src/coreclr/vm/dllimportcallback.h
src/coreclr/vm/dynamicmethod.cpp
src/coreclr/vm/eventing/eventpipe/ep-rt-coreclr.h
src/coreclr/vm/gccover.cpp
src/coreclr/vm/methoddescbackpatchinfo.cpp
src/coreclr/vm/precode.cpp
src/coreclr/vm/prestub.cpp
src/coreclr/vm/threads.cpp
src/coreclr/vm/threadsuspend.cpp
src/coreclr/vm/virtualcallstub.cpp