HomeFreeBSD

rtld: map without PROT_EXEC for relocation

Description

rtld: map without PROT_EXEC for relocation

This makes text segment relocation work under W^X.

Submitted by: Greg V <greg@unrelenting.technology> (original version)
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D27953

(cherry picked from commit 613a08cfa2e0fb1b99906961c7a676d527e17f05)

Details

Provenance
emasteAuthored on Jan 4 2021, 6:55 PM
Reviewer
kib
Differential Revision
D27953: rtld: When relocating, map without PROT_EXEC
Parents
rG94a5e942b0b6: qat: Free counters during detach
Branches
Unknown
Tags
Unknown