While trying to link FreeBSD/mips with lld I encountered an error: line 12: unknown command start.o start.o(.text*) ^ The source linker script is here: https://svnweb.freebsd.org/base/head/sys/boot/mips/uboot/ldscript.mips?revision=296183&view=markup#l12 It appears that the filename spec in most of our (FreeBSD's) linker scripts includes a wildcard at the beginning (e.g. *crtbegin.o, *crtend?.o), while this one mips linker script is the one case that has an explicit, non-wildcard path.
Fix: https://reviews.llvm.org/D23839
r280069