[PATCH] D39512: [LLD] [MinGW] Pass the -lldmap flag through

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 1 14:53:35 PDT 2017


mstorsjo added a comment.

In https://reviews.llvm.org/D39512#913184, @ruiu wrote:

> > Alternatively, should there be some escape mechanism for passing any option through to the COFF driver?
>
> That depends on how many options you want to do the same thing as -lldmap, and I think it's up to you.


I think it might be useful, especially while debugging some thing, and figuring out I want to test using some LLD option that isn't yet hooked up, but that might not make sense in normal use (if there's no common mapping for it in GNU ld params).

I guess common patterns for this would be either like `-Wl,-lldmap` or `-Xlinker -lldmap` - I guess the latter is easier to implement using the options parser we use. What would be a sensible name for it, `-Xlink`, `-Xlld-link`? (When used via the clang frontend, it would end up like `-Wl,-Xlld-link,-lldmap` I think.)


https://reviews.llvm.org/D39512





More information about the llvm-commits mailing list