Support inferring thecustomizing LLD behavior on target triple from linker filename (e.g.; in particular,
${triple}-ld.lld), and customizing the linker behavior based on it.having defaults depend on target system. The triple can be either
If the filename does not match any known targetpassed via --target= option, lldinferred from filename (${triple}-ld.lld)
or stored at build time as LLVM defaults.
to the default target configured in LLVM.
// NB: I understand this patch isn't going to be accepted upstream. However, since we're probably end up living with it in NetBSD, I'd appreciate any suggestions if the code could be improved.