This is useful for debugging.
Alternatively, should there be some escape mechanism for passing any option through to the COFF driver?
Differential D39512
[LLD] [MinGW] Pass the -lldmap flag through mstorsjo on Nov 1 2017, 2:45 PM. Authored by
Details
Diff Detail Event TimelineComment Actions
That depends on how many options you want to do the same thing as -lldmap, and I think it's up to you. Comment Actions 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.) Comment Actions There's a hidden path to pass information to the lld-link driver; LINK environment variable is interpreted and parsed as part of command line. Maybe you can use it for debugging? Comment Actions Oh, I didn't know about that - that would have worked for the case when I needed -lldmap now at least. Despite that I think some less obscure way to pass things through the MinGW frontend would be good as well - I can try to implement it using e.g. -Xlink unless you think I shouldn't. |