[lld] [LLD] [COFF] Print a warning when using /dependentloadflag without load config (PR #117400)
Mateusz Mikuła via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 23 05:38:07 PST 2024
================
@@ -29,3 +30,4 @@ FAIL: lld-link: error: /dependentloadflag: invalid argument: zz
FAIL-RANGE: lld-link: error: /dependentloadflag: invalid argument: 0xf0000
FAIL-NOARG: lld-link: error: /dependentloadflag: no argument specified
+WARN-NOBASE: lld-link: warning: _load_config_used not found, /delayloadflag will have no effect
----------------
mati865 wrote:
> Please add a test to check that no warnings are emitted if `_load_config_used` exists.
Good point, added.
> And to be really clear, ideally that test should have the `_load_config_used` symbol in a static library, so it’s not explicitly referenced or pulled in, other than lld doing it implicitly at the end.
Just to confirm. It'd be enough to turn `ldcfg.obj` into a static library and directly pass that library to LLD?
https://github.com/llvm/llvm-project/pull/117400
More information about the llvm-commits
mailing list