[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:29:13 PST 2024
================
@@ -2307,8 +2307,11 @@ void LinkerDriver::linkerMain(ArrayRef<const char *> argsArr) {
// Handle /dependentloadflag
for (auto *arg :
- args.filtered(OPT_dependentloadflag, OPT_dependentloadflag_opt))
+ args.filtered(OPT_dependentloadflag, OPT_dependentloadflag_opt)) {
parseDependentLoadFlags(arg);
+ if (!ctx.symtab.findUnderscore("_load_config_used"))
+ warn("_load_config_used not found, /delayloadflag will have no effect");
+ }
----------------
mati865 wrote:
I had started there, but judging by other uses of `ctx.symtab` I figured the driver might be the right place to put it.
https://github.com/llvm/llvm-project/pull/117400
More information about the llvm-commits
mailing list