[PATCH] D12029: [lld] LinkDriver, lld-link: introduce shim.

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 15 09:43:54 PDT 2015


compnerd added a comment.

If we are fine with adding custom flags to the link command line, then aliases would be sufficient I think.  The idea is that you want to preserve the semantics of PE/COFF (which you called the semantics of Windows).  The difference is that the linker invocation should be similar to ld's, but continue to provide the current semantics.  There are a few extensions that are useful (which are compatible with the PE/COFF semantics), but the binaries that are generated by the alternate interface are meant to run on a Windows system, so losing the semantics of PE/COFF would be problematic.

Just because the driver is written on/for unix, doesn't mean that the linker should provide unix semantics.  The semantics are that of PE/COFF because that is the target.  Its similar to how clang provides a GCC compatible interface which can still be used to generate a proper COFF object, even though ELF and COFF semantics are quite different.


http://reviews.llvm.org/D12029





More information about the llvm-commits mailing list