Stream: git-wasmtime

Topic: wasmtime / PR #8593 Parse object files with `ElfFile64` r...


view this post on Zulip Wasmtime GitHub notifications bot (May 10 2024 at 15:34):

alexcrichton opened PR #8593 from alexcrichton:read-only-elf to bytecodealliance:main:

The latter is what Wasmtime uses today but it pulls in parsers for all object formats supported by object. In the context of Wasmtime, however, we know that all objects produced are 64-bit ELF files so there's no need to pull in, for example, a COFF parser as that'll always return an error anyway. This commit switches uses of the object::File convenience to ElfFile64 instead.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (May 10 2024 at 15:34):

alexcrichton requested fitzgen for a review on PR #8593.

view this post on Zulip Wasmtime GitHub notifications bot (May 10 2024 at 15:34):

alexcrichton requested wasmtime-core-reviewers for a review on PR #8593.

view this post on Zulip Wasmtime GitHub notifications bot (May 10 2024 at 16:04):

fitzgen submitted PR review:

I think we should be able to disable the default features of object and enable just the "elf" feature now.

view this post on Zulip Wasmtime GitHub notifications bot (May 10 2024 at 16:04):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (May 14 2024 at 16:45):

alexcrichton commented on PR #8593:

Ah turns out we're already not-enabling coff/xe/etc, so not much else to do!

view this post on Zulip Wasmtime GitHub notifications bot (May 14 2024 at 17:08):

alexcrichton merged PR #8593.


Last updated: Dec 23 2024 at 12:05 UTC