Skip to content

builder takes _BL_SPACE too seriously in boot images #11

Open
@wesolows

Description

@wesolows
Contributor

Currently we test that an ELF boot image has a _BL_SPACE symbol and that its value is exactly equal to the amount of space occupied by (in effect) everything below the base of the BSS. Normally this is fine, but it's needlessly restrictive: if there's extra space allocated that's unused -- in sufficient quantity that it causes us to allocate unnecessary space beyond __ebss -- then we fail with an IncompatibleExecutable error. In fact this is harmless and we could test only to see whether totalsz <= symsz.

Activity

added a commit that references this issue on Apr 28, 2022
330d9a0
linked a pull request that will close this issue on Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @wesolows

      Issue actions

        builder takes _BL_SPACE too seriously in boot images · Issue #11 · oxidecomputer/amd-host-image-builder