Stream: git-wasmtime

Topic: wasmtime / PR #5608 Fix libcall relocations for precompil...


view this post on Zulip Wasmtime GitHub notifications bot (Jan 20 2023 at 16:36):

alexcrichton opened PR #5608 from fix-reloc-readonly to main:

This commit fixes some asserts and support for relocation libcalls in precompiled modules loaded from disk. In doing so this reworks how mmaps are managed for files from disk. All non-file-backed Mmap entries are read/write but file-backed versions were readonly. This commit changes this such that all Mmap objects, even if they're file-backed, start as read/write. The file-based versions all use copy-on-write to preserve the private-ness of the mapping.

This is not functionally intended to change anything. Instead this should have some more memory writable after a module is loaded but the text section, for example, is still left as read/execute when loading is finished. Additionally this makes modules compiled in memory more consistent with modules loaded from disk.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jan 20 2023 at 18:17):

jameysharp submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 20 2023 at 18:17):

jameysharp submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 20 2023 at 18:17):

jameysharp created PR review comment:

Looks like the comment should change here too.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 23 2023 at 15:11):

alexcrichton updated PR #5608 from fix-reloc-readonly to main.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 24 2023 at 15:15):

alexcrichton requested jameysharp for a review on PR #5608.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 25 2023 at 17:14):

alexcrichton updated PR #5608 from fix-reloc-readonly to main.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 25 2023 at 17:25):

jameysharp submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 25 2023 at 18:09):

alexcrichton merged PR #5608.


Last updated: Dec 23 2024 at 12:05 UTC