Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow access to section contents while building #367

Merged
merged 1 commit into from
Aug 28, 2021

Commits on Aug 27, 2021

  1. Allow access to section contents while building

    This commit adds `Section::{data, data_mut}` accessors to
    `write::Section` to allow accessing data after it's been appended. The
    motivation for this is that in Wasmtime we build an `Object` but we try
    to patch relocations after the locations of all symbols are known,
    handling them before load-time. Currently the logic of
    appending-with-alignment is duplicated in Wasmtime but allowing access
    to the underlying section data as-been-appended-so-far should enable us
    to remove that duplication.
    alexcrichton committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    67dce85 View commit details
    Browse the repository at this point in the history