Closed
Description
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
.