[lld] [LLD] [MinGW] Implement --dependent-load-flag option (PR #113814)
Mateusz MikuĊa via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 20 15:56:32 PST 2024
mati865 wrote:
IIUC static libraries won't even contain that symbol, and in this case it should be provided only by mingw-w64.
I think this example backs up my point:
```
$ rg "_load_config_used" /clang64/lib -la -g '*.a'
H:/msys64/clang64/lib\liblldCOFF.a
H:/msys64/clang64/lib\libmingwex.a
$ nm /clang64/lib/libmingwex.a | rg _load_config_used
00000000 R _load_config_used
00000138 r _load_config_used__end
$ nm /clang64/lib/liblldCOFF.a | rg _load_config_used
# nothing
```
Only two static libraries from my whole installation of CLANG64 env in MSYS2 contain `_load_config_used` string. In case of `libmingwex.a` it's obviously CRT and `liblldCOFF.a` got matched only because this string is hardcoded within the linker logic.
https://github.com/llvm/llvm-project/pull/113814
More information about the llvm-commits
mailing list