diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp --- a/lld/ELF/Driver.cpp +++ b/lld/ELF/Driver.cpp @@ -804,9 +804,9 @@ } static std::unordered_set -getTraceSymbolsFromFile(opt::InputArgList &Args) { +getTraceSymbolsFromFile(opt::InputArgList &args) { std::vector v = - args::getStrings(Args, OPT_trace_symbols_from_file); + args::getStrings(args, OPT_trace_symbols_from_file); std::unordered_set traceSymbolsFromFile( std::make_move_iterator(v.begin()), std::make_move_iterator(v.end())); return traceSymbolsFromFile; @@ -1095,6 +1095,7 @@ config->trace = args.hasArg(OPT_trace); config->traceAllSymbols = args.hasArg(OPT_trace_all_symbols); config->traceSymbolsFromFile = getTraceSymbolsFromFile(args); + config->undefined = args::getStrings(args, OPT_undefined); config->undefinedVersion = args.hasFlag(OPT_undefined_version, OPT_no_undefined_version, true);