Skip to content

Linker script OUTPUT_FORMAT command does not support binary option #87891

Closed
@fumoboy007

Description

@fumoboy007

Background

The OUTPUT_FORMAT linker script command is equivalent to the --oformat command-line option.

D23769 implemented support for --oformat binary, which is used for embedded devices that do not support standard executable container formats like ELF.

Problem

It appears that D23769 only updated the command-line driver and did not update the linker script parser implementation. So the linker script command OUTPUT_FORMAT(binary) is currently unrecognized.

Proposed Solution

As far as I can tell, the change to the parser implementation should be trivial: check for the special value "binary" and set config->oFormatBinary = true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions