mold: fatal: mold does not suppor `-b binary`. If you want to convert a binary file into an object file, use `objcopy -I binary -O default <input-file> <output-file.o>` instead.
with lld:
ld.lld: error: target emulation unknown: -m or at least one .o file required
Fix: change the definition of OBJCOPY_CMD on line 66 of the Makefile to use objcopy -I binary -O default $< $@.
@ioraff
The problematic commands are like:
works with GNU ld.
with mold:
with lld:
Fix: change the definition of OBJCOPY_CMD on line 66 of the Makefile to use
objcopy -I binary -O default $< $@
.