Skip to content

Commit f8dd76c

Browse files
committed
[lld] Add ability to have OUTPUT_FORMAT(binary) in linker script for ld.lld
1 parent d1dc416 commit f8dd76c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lld/ELF/ScriptParser.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,12 @@ void ScriptParser::readOutputFormat() {
475475
consume(")");
476476
}
477477
s = config->bfdname;
478+
479+
if (s == "binary") {
480+
config->oFormatBinary = true;
481+
return;
482+
}
483+
478484
if (s.consume_back("-freebsd"))
479485
config->osabi = ELFOSABI_FREEBSD;
480486

0 commit comments

Comments
 (0)