Skip to content

add support for --oformat=binary #7164

@zigazeljko

Description

@zigazeljko

LLD supports outputting raw binary instead of ELF when given --oformat=binary flag. It is currently supported only when using zig clang (as -Wl,--oformat=binary), but we should also support it when using zig cc.

We could also use that to implemenent -ofmt=raw (for build-exe), which will solve #2826 and #5309, and allow us to get rid of installRaw build step.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSolving this issue will likely involve adding new logic or components to the codebase.zig ccZig as a drop-in C compiler feature

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions