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.

Details

Committed
Marge Bot <ben+marge-bot@smart-cactus.org>Jun 12 2019, 6:36 AM
Parents
rGHCbbc752c50f3a: rts/linker: Make elf_got.c a bit more legible
Branches
Unknown
Tags
Unknown