summaryrefslogtreecommitdiff
path: root/Ports/vttest/patches
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-09-01 01:15:32 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-01 01:36:18 +0200
commit9206efaabe64b5f3a684a7b644263d6c9407878d (patch)
tree66fd81913a1284889cb7f76548909c2ed34acf31 /Ports/vttest/patches
parent10f5a046c489979a9a81b487b1a518aba039345a (diff)
downloadserenity-9206efaabe64b5f3a684a7b644263d6c9407878d.zip
LibELF: Don't copy read-only data sections
The dynamic loader was mistakenly assuming that there are only two types of program load headers: text (RX) and data (RW). Now that we're linking with `-z separate-code`, we will also get some read-onlydata (R) segments. These can be memory-mapped directly without making a private per-process copy. To solve this, the code now instead separates the headers into map/copy instead of text/data. Writable segments get copied, while non-writable segments get memory-mapped. :^)
Diffstat (limited to 'Ports/vttest/patches')
0 files changed, 0 insertions, 0 deletions