André Hentschel wrote:
As per tests in kernel32:loader it seems linux&co allows reads on PROT_WRITE areas, but solaris doesn't and crashes. This fixes this issue.
if (vprot & VPROT_WRITECOPY) prot |= PROT_WRITE;
if (vprot & VPROT_WRITECOPY) prot |= PROT_READ | PROT_WRITE;
Do you mean that the recently added test for resource section access mapping crashes on Solaris? If yes, then the fix should be done in different place.