diff options
author | Andreas Kling <kling@serenityos.org> | 2021-09-01 01:15:32 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-01 01:36:18 +0200 |
commit | 9206efaabe64b5f3a684a7b644263d6c9407878d (patch) | |
tree | 66fd81913a1284889cb7f76548909c2ed34acf31 /Ports/vttest/patches | |
parent | 10f5a046c489979a9a81b487b1a518aba039345a (diff) | |
download | serenity-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