commit | d6c933edb04bdf0c0baf06703305bc597a25eed5 | [log] [tgz] |
---|---|---|
author | Martin Storsjö <martin@martin.st> | Thu May 07 20:59:22 2020 +0300 |
committer | Martin Storsjö <martin@martin.st> | Mon May 11 00:14:32 2020 +0300 |
tree | ec206fdd0249a66842afb70dad74cf3f24d45a7b | |
parent | f43d6cb57d475fc0bcc9fa8d957b04296150f830 [diff] |
crt: Don't make sections executable when not necessary With this in place, a VirtualProtect implementation in winstorecompat that just straight redirects to VirtualProtectFromApp will work fine even on UWP without any codeGeneration capability, as long as there's no runtime pseudo relocs in code sections. And code compiled by LLVM (and as far as I've seen, by GCC on x86_64 as well) only places such references in .data/.rdata. Signed-off-by: Martin Storsjö <martin@martin.st>