[lld] [LLD] [MinGW] Implement --dependent-load-flag option (PR #113814)

Mateusz MikuĊ‚a via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 21 10:09:08 PST 2024


mati865 wrote:

> I don't see how that contradicts what I'm saying :-) As long as `libmingwex.a` is involved in the link, LLD will pull the `_load_config_used` symbol from there.

Due to the late hour, I forgot to write one more thing: it would be useful to distinguish "typical" static libraries from CRT ones.
Because I understood this part:

> Hmm, but isn't `_load_config_used` linked in whenever it is found in any of the static libraries?

As if any static libraries were allowed to provide it.

> Ah, right, I forgot about that detail. I presume that this is what @mati865 was referring to?
> 
> >

Yeah, I meant to say the typical static libraries should never contain that symbol, and mingw-w64 libs provide it only when CFG is enabled.

https://github.com/llvm/llvm-project/pull/113814


More information about the llvm-commits mailing list