rts/linker: Only mprotect GOT after it is filled

Authored by bgamari on Jun 8 2019, 12:28 PM.

Description

rts/linker: Only mprotect GOT after it is filled

This fixes a regression, introduced by 67c422ca, where we mprotect'd the
global offset table (GOT) region to PROT_READ before we had finished
filling it, resulting in a linker crash.

Fixes Trac #16779.

(cherry picked from commit 217e6db4af6752b13c586d4e8925a4a9a2f47245)

Details

Committed
bgamariJun 12 2019, 7:45 AM
Parents
rGHCe628c7be84ba: rts/linker: Make elf_got.c a bit more legible
Branches
Unknown
Tags
Unknown
References
wip/backport-MR1137