Lines Matching refs:args
80 static void setConfigs(opt::InputArgList &args);
81 static void readConfigs(opt::InputArgList &args);
90 bool elf::link(ArrayRef<const char *> args, llvm::raw_ostream &stdoutOS, in link() argument
110 ctx->e.logName = args::getFilenameWithoutExe(args[0]); in link()
123 config->progName = args[0]; in link()
125 driver->linkerMain(args); in link()
382 static const char *getReproduceOption(opt::InputArgList &args) { in getReproduceOption() argument
383 if (auto *arg = args.getLastArg(OPT_reproduce)) in getReproduceOption()
388 static bool hasZOption(opt::InputArgList &args, StringRef key) { in hasZOption() argument
389 for (auto *arg : args.filtered(OPT_z)) in hasZOption()
395 static bool getZFlag(opt::InputArgList &args, StringRef k1, StringRef k2, in getZFlag() argument
397 for (auto *arg : args.filtered_reverse(OPT_z)) { in getZFlag()
406 static SeparateSegmentKind getZSeparate(opt::InputArgList &args) { in getZSeparate() argument
407 for (auto *arg : args.filtered_reverse(OPT_z)) { in getZSeparate()
419 static GnuStackKind getZGnuStack(opt::InputArgList &args) { in getZGnuStack() argument
420 for (auto *arg : args.filtered_reverse(OPT_z)) { in getZGnuStack()
432 static uint8_t getZStartStopVisibility(opt::InputArgList &args) { in getZStartStopVisibility() argument
433 for (auto *arg : args.filtered_reverse(OPT_z)) { in getZStartStopVisibility()
506 static void checkZOptions(opt::InputArgList &args) { in checkZOptions() argument
507 for (auto *arg : args.filtered(OPT_z)) in checkZOptions()
518 opt::InputArgList args = parser.parse(argsArr.slice(1)); in linkerMain() local
521 errorHandler().errorLimit = args::getInteger(args, OPT_error_limit, 20); in linkerMain()
523 args.hasFlag(OPT_fatal_warnings, OPT_no_fatal_warnings, false); in linkerMain()
524 checkZOptions(args); in linkerMain()
527 if (args.hasArg(OPT_help)) { in linkerMain()
546 if (args.hasArg(OPT_v) || args.hasArg(OPT_version)) in linkerMain()
549 if (const char *path = getReproduceOption(args)) { in linkerMain()
556 tar->append("response.txt", createResponseFile(args)); in linkerMain()
558 StringRef ltoSampleProfile = args.getLastArgValue(OPT_lto_sample_profile); in linkerMain()
566 readConfigs(args); in linkerMain()
570 if (args.hasArg(OPT_v) && !args.hasArg(OPT_INPUT)) in linkerMain()
572 if (args.hasArg(OPT_version)) in linkerMain()
583 createFiles(args); in linkerMain()
588 setConfigs(args); in linkerMain()
593 link(args); in linkerMain()
598 args.getLastArgValue(OPT_time_trace_eq).str(), config->outputFile)); in linkerMain()
603 static std::string getRpath(opt::InputArgList &args) { in getRpath() argument
604 std::vector<StringRef> v = args::getStrings(args, OPT_rpath); in getRpath()
610 static void setUnresolvedSymbolPolicy(opt::InputArgList &args) { in setUnresolvedSymbolPolicy() argument
611 UnresolvedPolicy errorOrWarn = args.hasFlag(OPT_error_unresolved_symbols, in setUnresolvedSymbolPolicy()
619 for (const opt::Arg *arg : args) { in setUnresolvedSymbolPolicy()
664 static Target2Policy getTarget2(opt::InputArgList &args) { in getTarget2() argument
665 StringRef s = args.getLastArgValue(OPT_target2, "got-rel"); in getTarget2()
676 static bool isOutputFormatBinary(opt::InputArgList &args) { in isOutputFormatBinary() argument
677 StringRef s = args.getLastArgValue(OPT_oformat, "elf"); in isOutputFormatBinary()
685 static DiscardPolicy getDiscard(opt::InputArgList &args) { in getDiscard() argument
687 args.getLastArg(OPT_discard_all, OPT_discard_locals, OPT_discard_none); in getDiscard()
697 static StringRef getDynamicLinker(opt::InputArgList &args) { in getDynamicLinker() argument
698 auto *arg = args.getLastArg(OPT_dynamic_linker, OPT_no_dynamic_linker); in getDynamicLinker()
709 static int getMemtagMode(opt::InputArgList &args) { in getMemtagMode() argument
710 StringRef memtagModeArg = args.getLastArgValue(OPT_android_memtag_mode); in getMemtagMode()
731 static ICFLevel getICF(opt::InputArgList &args) { in getICF() argument
732 auto *arg = args.getLastArg(OPT_icf_none, OPT_icf_safe, OPT_icf_all); in getICF()
740 static StripPolicy getStrip(opt::InputArgList &args) { in getStrip() argument
741 if (args.hasArg(OPT_relocatable)) in getStrip()
744 auto *arg = args.getLastArg(OPT_strip_all, OPT_strip_debug); in getStrip()
752 static uint64_t parseSectionAddress(StringRef s, opt::InputArgList &args, in parseSectionAddress() argument
758 error("invalid argument: " + arg.getAsString(args)); in parseSectionAddress()
762 static StringMap<uint64_t> getSectionStartMap(opt::InputArgList &args) { in getSectionStartMap() argument
764 for (auto *arg : args.filtered(OPT_section_start)) { in getSectionStartMap()
768 ret[name] = parseSectionAddress(addr, args, *arg); in getSectionStartMap()
771 if (auto *arg = args.getLastArg(OPT_Ttext)) in getSectionStartMap()
772 ret[".text"] = parseSectionAddress(arg->getValue(), args, *arg); in getSectionStartMap()
773 if (auto *arg = args.getLastArg(OPT_Tdata)) in getSectionStartMap()
774 ret[".data"] = parseSectionAddress(arg->getValue(), args, *arg); in getSectionStartMap()
775 if (auto *arg = args.getLastArg(OPT_Tbss)) in getSectionStartMap()
776 ret[".bss"] = parseSectionAddress(arg->getValue(), args, *arg); in getSectionStartMap()
780 static SortSectionPolicy getSortSection(opt::InputArgList &args) { in getSortSection() argument
781 StringRef s = args.getLastArgValue(OPT_sort_section); in getSortSection()
791 static OrphanHandlingPolicy getOrphanHandling(opt::InputArgList &args) { in getOrphanHandling() argument
792 StringRef s = args.getLastArgValue(OPT_orphan_handling, "place"); in getOrphanHandling()
806 getBuildId(opt::InputArgList &args) { in getBuildId() argument
807 auto *arg = args.getLastArg(OPT_build_id); in getBuildId()
828 static std::pair<bool, bool> getPackDynRelocs(opt::InputArgList &args) { in getPackDynRelocs() argument
829 StringRef s = args.getLastArgValue(OPT_pack_dyn_relocs, "none"); in getPackDynRelocs()
863 for (StringRef line : args::getLines(mb)) { in readCallGraph()
949 static bool getCompressDebugSections(opt::InputArgList &args) { in getCompressDebugSections() argument
950 StringRef s = args.getLastArgValue(OPT_compress_debug_sections, "none"); in getCompressDebugSections()
966 static std::pair<StringRef, StringRef> getOldNewOptions(opt::InputArgList &args, in getOldNewOptions() argument
968 auto *arg = args.getLastArg(id); in getOldNewOptions()
982 for (StringRef s : args::getLines(mb)) in getSymbolOrderingFile()
989 static bool getIsRela(opt::InputArgList &args) { in getIsRela() argument
991 for (auto *arg : args.filtered_reverse(OPT_z)) { in getIsRela()
1022 static void readConfigs(opt::InputArgList &args) { in readConfigs() argument
1023 errorHandler().verbose = args.hasArg(OPT_verbose); in readConfigs()
1025 args.hasArg(OPT_visual_studio_diagnostics_format, false); in readConfigs()
1028 args.hasFlag(OPT_allow_multiple_definition, in readConfigs()
1030 hasZOption(args, "muldefs"); in readConfigs()
1032 args.hasFlag(OPT_android_memtag_heap, OPT_no_android_memtag_heap, false); in readConfigs()
1033 config->androidMemtagStack = args.hasFlag(OPT_android_memtag_stack, in readConfigs()
1035 config->androidMemtagMode = getMemtagMode(args); in readConfigs()
1036 config->auxiliaryList = args::getStrings(args, OPT_auxiliary); in readConfigs()
1038 args.getLastArg(OPT_Bno_symbolic, OPT_Bsymbolic_non_weak_functions, in readConfigs()
1048 args.hasFlag(OPT_check_sections, OPT_no_check_sections, true); in readConfigs()
1049 config->chroot = args.getLastArgValue(OPT_chroot); in readConfigs()
1050 config->compressDebugSections = getCompressDebugSections(args); in readConfigs()
1051 config->cref = args.hasArg(OPT_cref); in readConfigs()
1053 args.hasFlag(OPT_optimize_bb_jumps, OPT_no_optimize_bb_jumps, false); in readConfigs()
1054 config->demangle = args.hasFlag(OPT_demangle, OPT_no_demangle, true); in readConfigs()
1055 config->dependencyFile = args.getLastArgValue(OPT_dependency_file); in readConfigs()
1056 …config->dependentLibraries = args.hasFlag(OPT_dependent_libraries, OPT_no_dependent_libraries, tru… in readConfigs()
1057 config->disableVerify = args.hasArg(OPT_disable_verify); in readConfigs()
1058 config->discard = getDiscard(args); in readConfigs()
1059 config->dwoDir = args.getLastArgValue(OPT_plugin_opt_dwo_dir_eq); in readConfigs()
1060 config->dynamicLinker = getDynamicLinker(args); in readConfigs()
1062 args.hasFlag(OPT_eh_frame_hdr, OPT_no_eh_frame_hdr, false); in readConfigs()
1063 config->emitLLVM = args.hasArg(OPT_plugin_opt_emit_llvm, false); in readConfigs()
1064 config->emitRelocs = args.hasArg(OPT_emit_relocs); in readConfigs()
1065 config->callGraphProfileSort = args.hasFlag( in readConfigs()
1068 args.hasFlag(OPT_enable_new_dtags, OPT_disable_new_dtags, true); in readConfigs()
1069 config->entry = args.getLastArgValue(OPT_entry); in readConfigs()
1072 args.getLastArgValue(OPT_error_handling_script); in readConfigs()
1075 args.hasFlag(OPT_execute_only, OPT_no_execute_only, false); in readConfigs()
1077 args.hasFlag(OPT_export_dynamic, OPT_no_export_dynamic, false) || in readConfigs()
1078 args.hasArg(OPT_shared); in readConfigs()
1079 config->filterList = args::getStrings(args, OPT_filter); in readConfigs()
1080 config->fini = args.getLastArgValue(OPT_fini, "_fini"); in readConfigs()
1081 config->fixCortexA53Errata843419 = args.hasArg(OPT_fix_cortex_a53_843419) && in readConfigs()
1082 !args.hasArg(OPT_relocatable); in readConfigs()
1084 args.hasArg(OPT_fix_cortex_a8) && !args.hasArg(OPT_relocatable); in readConfigs()
1086 args.hasFlag(OPT_fortran_common, OPT_no_fortran_common, false); in readConfigs()
1087 config->gcSections = args.hasFlag(OPT_gc_sections, OPT_no_gc_sections, false); in readConfigs()
1088 config->gnuUnique = args.hasFlag(OPT_gnu_unique, OPT_no_gnu_unique, true); in readConfigs()
1089 config->gdbIndex = args.hasFlag(OPT_gdb_index, OPT_no_gdb_index, false); in readConfigs()
1090 config->icf = getICF(args); in readConfigs()
1092 args.hasArg(OPT_ignore_data_address_equality); in readConfigs()
1094 args.hasArg(OPT_ignore_function_address_equality); in readConfigs()
1095 config->init = args.getLastArgValue(OPT_init, "_init"); in readConfigs()
1096 config->ltoAAPipeline = args.getLastArgValue(OPT_lto_aa_pipeline); in readConfigs()
1097 config->ltoCSProfileGenerate = args.hasArg(OPT_lto_cs_profile_generate); in readConfigs()
1098 config->ltoCSProfileFile = args.getLastArgValue(OPT_lto_cs_profile_file); in readConfigs()
1099 config->ltoPGOWarnMismatch = args.hasFlag(OPT_lto_pgo_warn_mismatch, in readConfigs()
1101 config->ltoDebugPassManager = args.hasArg(OPT_lto_debug_pass_manager); in readConfigs()
1102 config->ltoEmitAsm = args.hasArg(OPT_lto_emit_asm); in readConfigs()
1103 config->ltoNewPmPasses = args.getLastArgValue(OPT_lto_newpm_passes); in readConfigs()
1105 args.hasFlag(OPT_lto_whole_program_visibility, in readConfigs()
1107 config->ltoo = args::getInteger(args, OPT_lto_O, 2); in readConfigs()
1108 config->ltoObjPath = args.getLastArgValue(OPT_lto_obj_path_eq); in readConfigs()
1109 config->ltoPartitions = args::getInteger(args, OPT_lto_partitions, 1); in readConfigs()
1110 config->ltoSampleProfile = args.getLastArgValue(OPT_lto_sample_profile); in readConfigs()
1112 args.getLastArgValue(OPT_lto_basic_block_sections); in readConfigs()
1114 args.hasFlag(OPT_lto_unique_basic_block_section_names, in readConfigs()
1116 config->mapFile = args.getLastArgValue(OPT_Map); in readConfigs()
1117 config->mipsGotSize = args::getInteger(args, OPT_mips_got_size, 0xfff0); in readConfigs()
1119 args.hasFlag(OPT_merge_exidx_entries, OPT_no_merge_exidx_entries, true); in readConfigs()
1121 args.hasFlag(OPT_mmap_output_file, OPT_no_mmap_output_file, true); in readConfigs()
1122 config->nmagic = args.hasFlag(OPT_nmagic, OPT_no_nmagic, false); in readConfigs()
1123 config->noinhibitExec = args.hasArg(OPT_noinhibit_exec); in readConfigs()
1124 config->nostdlib = args.hasArg(OPT_nostdlib); in readConfigs()
1125 config->oFormatBinary = isOutputFormatBinary(args); in readConfigs()
1126 config->omagic = args.hasFlag(OPT_omagic, OPT_no_omagic, false); in readConfigs()
1127 config->opaquePointers = args.hasFlag( in readConfigs()
1129 config->optRemarksFilename = args.getLastArgValue(OPT_opt_remarks_filename); in readConfigs()
1130 config->optStatsFilename = args.getLastArgValue(OPT_plugin_opt_stats_file); in readConfigs()
1133 if (auto *arg = args.getLastArg(OPT_opt_remarks_hotness_threshold)) { in readConfigs()
1142 config->optRemarksPasses = args.getLastArgValue(OPT_opt_remarks_passes); in readConfigs()
1143 config->optRemarksWithHotness = args.hasArg(OPT_opt_remarks_with_hotness); in readConfigs()
1144 config->optRemarksFormat = args.getLastArgValue(OPT_opt_remarks_format); in readConfigs()
1145 config->optimize = args::getInteger(args, OPT_O, 1); in readConfigs()
1146 config->orphanHandling = getOrphanHandling(args); in readConfigs()
1147 config->outputFile = args.getLastArgValue(OPT_o); in readConfigs()
1148 config->packageMetadata = args.getLastArgValue(OPT_package_metadata); in readConfigs()
1149 config->pie = args.hasFlag(OPT_pie, OPT_no_pie, false); in readConfigs()
1151 args.hasFlag(OPT_print_icf_sections, OPT_no_print_icf_sections, false); in readConfigs()
1153 args.hasFlag(OPT_print_gc_sections, OPT_no_print_gc_sections, false); in readConfigs()
1154 config->printArchiveStats = args.getLastArgValue(OPT_print_archive_stats); in readConfigs()
1156 args.getLastArgValue(OPT_print_symbol_order); in readConfigs()
1157 config->relax = args.hasFlag(OPT_relax, OPT_no_relax, true); in readConfigs()
1158 config->rpath = getRpath(args); in readConfigs()
1159 config->relocatable = args.hasArg(OPT_relocatable); in readConfigs()
1161 if (args.hasArg(OPT_save_temps)) { in readConfigs()
1166 for (auto *arg : args.filtered(OPT_save_temps_eq)) { in readConfigs()
1175 config->searchPaths = args::getStrings(args, OPT_library_path); in readConfigs()
1176 config->sectionStartMap = getSectionStartMap(args); in readConfigs()
1177 config->shared = args.hasArg(OPT_shared); in readConfigs()
1178 config->singleRoRx = !args.hasFlag(OPT_rosegment, OPT_no_rosegment, true); in readConfigs()
1179 config->soName = args.getLastArgValue(OPT_soname); in readConfigs()
1180 config->sortSection = getSortSection(args); in readConfigs()
1181 config->splitStackAdjustSize = args::getInteger(args, OPT_split_stack_adjust_size, 16384); in readConfigs()
1182 config->strip = getStrip(args); in readConfigs()
1183 config->sysroot = args.getLastArgValue(OPT_sysroot); in readConfigs()
1184 config->target1Rel = args.hasFlag(OPT_target1_rel, OPT_target1_abs, false); in readConfigs()
1185 config->target2 = getTarget2(args); in readConfigs()
1186 config->thinLTOCacheDir = args.getLastArgValue(OPT_thinlto_cache_dir); in readConfigs()
1188 parseCachePruningPolicy(args.getLastArgValue(OPT_thinlto_cache_policy)), in readConfigs()
1190 config->thinLTOEmitImportsFiles = args.hasArg(OPT_thinlto_emit_imports_files); in readConfigs()
1191 config->thinLTOEmitIndexFiles = args.hasArg(OPT_thinlto_emit_index_files) || in readConfigs()
1192 args.hasArg(OPT_thinlto_index_only) || in readConfigs()
1193 args.hasArg(OPT_thinlto_index_only_eq); in readConfigs()
1194 config->thinLTOIndexOnly = args.hasArg(OPT_thinlto_index_only) || in readConfigs()
1195 args.hasArg(OPT_thinlto_index_only_eq); in readConfigs()
1196 config->thinLTOIndexOnlyArg = args.getLastArgValue(OPT_thinlto_index_only_eq); in readConfigs()
1198 getOldNewOptions(args, OPT_thinlto_object_suffix_replace_eq); in readConfigs()
1200 getOldNewOptions(args, OPT_thinlto_prefix_replace_eq); in readConfigs()
1202 if (args.hasArg(OPT_thinlto_object_suffix_replace_eq)) in readConfigs()
1205 else if (args.hasArg(OPT_thinlto_prefix_replace_eq)) in readConfigs()
1210 args::getStrings(args, OPT_thinlto_single_module_eq); in readConfigs()
1211 config->timeTraceEnabled = args.hasArg(OPT_time_trace_eq); in readConfigs()
1213 args::getInteger(args, OPT_time_trace_granularity, 500); in readConfigs()
1214 config->trace = args.hasArg(OPT_trace); in readConfigs()
1215 config->undefined = args::getStrings(args, OPT_undefined); in readConfigs()
1217 args.hasFlag(OPT_undefined_version, OPT_no_undefined_version, true); in readConfigs()
1218 config->unique = args.hasArg(OPT_unique); in readConfigs()
1219 config->useAndroidRelrTags = args.hasFlag( in readConfigs()
1222 args.hasFlag(OPT_warn_backrefs, OPT_no_warn_backrefs, false); in readConfigs()
1223 config->warnCommon = args.hasFlag(OPT_warn_common, OPT_no_warn_common, false); in readConfigs()
1225 args.hasFlag(OPT_warn_symbol_ordering, OPT_no_warn_symbol_ordering, true); in readConfigs()
1226 config->whyExtract = args.getLastArgValue(OPT_why_extract); in readConfigs()
1227 config->zCombreloc = getZFlag(args, "combreloc", "nocombreloc", true); in readConfigs()
1228 config->zCopyreloc = getZFlag(args, "copyreloc", "nocopyreloc", true); in readConfigs()
1229 config->zForceBti = hasZOption(args, "force-bti"); in readConfigs()
1230 config->zForceIbt = hasZOption(args, "force-ibt"); in readConfigs()
1231 config->zGlobal = hasZOption(args, "global"); in readConfigs()
1232 config->zGnustack = getZGnuStack(args); in readConfigs()
1233 config->zHazardplt = hasZOption(args, "hazardplt"); in readConfigs()
1234 config->zIfuncNoplt = hasZOption(args, "ifunc-noplt"); in readConfigs()
1235 config->zInitfirst = hasZOption(args, "initfirst"); in readConfigs()
1236 config->zInterpose = hasZOption(args, "interpose"); in readConfigs()
1238 args, "keep-text-section-prefix", "nokeep-text-section-prefix", false); in readConfigs()
1239 config->zNodefaultlib = hasZOption(args, "nodefaultlib"); in readConfigs()
1240 config->zNodelete = hasZOption(args, "nodelete"); in readConfigs()
1241 config->zNodlopen = hasZOption(args, "nodlopen"); in readConfigs()
1242 config->zNow = getZFlag(args, "now", "lazy", false); in readConfigs()
1243 config->zOrigin = hasZOption(args, "origin"); in readConfigs()
1244 config->zPacPlt = hasZOption(args, "pac-plt"); in readConfigs()
1245 config->zRelro = getZFlag(args, "relro", "norelro", true); in readConfigs()
1246 config->zRetpolineplt = hasZOption(args, "retpolineplt"); in readConfigs()
1247 config->zRodynamic = hasZOption(args, "rodynamic"); in readConfigs()
1248 config->zSeparate = getZSeparate(args); in readConfigs()
1249 config->zShstk = hasZOption(args, "shstk"); in readConfigs()
1250 config->zStackSize = args::getZOptionValue(args, OPT_z, "stack-size", 0); in readConfigs()
1252 getZFlag(args, "start-stop-gc", "nostart-stop-gc", true); in readConfigs()
1253 config->zStartStopVisibility = getZStartStopVisibility(args); in readConfigs()
1254 config->zText = getZFlag(args, "text", "notext", true); in readConfigs()
1255 config->zWxneeded = hasZOption(args, "wxneeded"); in readConfigs()
1256 setUnresolvedSymbolPolicy(args); in readConfigs()
1257 config->power10Stubs = args.getLastArgValue(OPT_power10_stubs_eq) != "no"; in readConfigs()
1259 if (opt::Arg *arg = args.getLastArg(OPT_eb, OPT_el)) { in readConfigs()
1266 for (opt::Arg *arg : args.filtered(OPT_shuffle_sections)) { in readConfigs()
1286 for (opt::Arg *arg : args.filtered(OPT_z)) { in readConfigs()
1301 for (opt::Arg *arg : args.filtered(OPT_z)) { in readConfigs()
1325 if (auto *arg = args.getLastArg(OPT_plugin_opt_mcpu_eq)) in readConfigs()
1329 for (opt::Arg *arg : args.filtered(OPT_plugin_opt_eq_minus)) in readConfigs()
1336 for (opt::Arg *arg : args.filtered(OPT_plugin_opt_eq)) { in readConfigs()
1343 config->passPlugins = args::getStrings(args, OPT_load_pass_plugins); in readConfigs()
1346 for (auto *arg : args.filtered(OPT_mllvm)) in readConfigs()
1351 if (auto *arg = args.getLastArg(OPT_threads)) { in readConfigs()
1360 if (auto *arg = args.getLastArg(OPT_thinlto_jobs)) in readConfigs()
1377 if (args.hasArg(OPT_Ttext_segment)) in readConfigs()
1382 if (auto *arg = args.getLastArg(OPT_m)) { in readConfigs()
1392 if (auto *arg = args.getLastArg(OPT_hash_style)) { in readConfigs()
1404 if (args.hasArg(OPT_print_map)) in readConfigs()
1413 std::tie(config->buildId, config->buildIdVector) = getBuildId(args); in readConfigs()
1415 if (getZFlag(args, "pack-relative-relocs", "nopack-relative-relocs", false)) { in readConfigs()
1420 getPackDynRelocs(args); in readConfigs()
1423 if (auto *arg = args.getLastArg(OPT_symbol_ordering_file)){ in readConfigs()
1424 if (args.hasArg(OPT_call_graph_ordering_file)) in readConfigs()
1443 if (auto *arg = args.getLastArg(OPT_retain_symbols_file)) { in readConfigs()
1447 for (StringRef s : args::getLines(*buffer)) in readConfigs()
1452 for (opt::Arg *arg : args.filtered(OPT_warn_backrefs_exclude)) { in readConfigs()
1465 for (auto *arg : args.filtered(OPT_export_dynamic_symbol)) in readConfigs()
1474 config->bsymbolic == BsymbolicKind::All || args.hasArg(OPT_dynamic_list); in readConfigs()
1476 args.filtered(OPT_dynamic_list, OPT_export_dynamic_symbol_list)) in readConfigs()
1480 for (auto *arg : args.filtered(OPT_version_script)) in readConfigs()
1493 static void setConfigs(opt::InputArgList &args) { in setConfigs() argument
1503 config->picThunk = args.hasArg(OPT_pic_veneer, config->isPic); in setConfigs()
1520 config->isRela = getIsRela(args); in setConfigs()
1527 config->writeAddends = args.hasFlag(OPT_apply_dynamic_relocs, in setConfigs()
1541 args.hasFlag(OPT_check_dynamic_relocations, in setConfigs()
1544 args.hasFlag(OPT_toc_optimize, OPT_no_toc_optimize, m == EM_PPC64); in setConfigs()
1546 args.hasFlag(OPT_pcrel_optimize, OPT_no_pcrel_optimize, m == EM_PPC64); in setConfigs()
1559 void LinkerDriver::createFiles(opt::InputArgList &args) { in createFiles() argument
1567 for (auto *arg : args) { in createFiles()
1687 static uint64_t getMaxPageSize(opt::InputArgList &args) { in getMaxPageSize() argument
1688 uint64_t val = args::getZOptionValue(args, OPT_z, "max-page-size", in getMaxPageSize()
1704 static uint64_t getCommonPageSize(opt::InputArgList &args) { in getCommonPageSize() argument
1705 uint64_t val = args::getZOptionValue(args, OPT_z, "common-page-size", in getCommonPageSize()
1723 static Optional<uint64_t> getImageBase(opt::InputArgList &args) { in getImageBase() argument
1726 auto *arg = args.getLastArg(OPT_image_base); in getImageBase()
1743 static DenseSet<StringRef> getExcludeLibs(opt::InputArgList &args) { in getExcludeLibs() argument
1745 for (auto *arg : args.filtered(OPT_exclude_libs)) { in getExcludeLibs()
1765 static void excludeLibs(opt::InputArgList &args) { in excludeLibs() argument
1766 DenseSet<StringRef> libs = getExcludeLibs(args); in excludeLibs()
2029 static void findKeepUniqueSections(opt::InputArgList &args) { in findKeepUniqueSections() argument
2030 for (auto *arg : args.filtered(OPT_keep_unique)) { in findKeepUniqueSections()
2205 static std::vector<WrappedSymbol> addWrappedSymbols(opt::InputArgList &args) { in addWrappedSymbols() argument
2209 for (auto *arg : args.filtered(OPT_wrap)) { in addWrappedSymbols()
2427 void LinkerDriver::link(opt::InputArgList &args) { in link() argument
2431 if (!args.hasArg(OPT_hash_style)) { in link()
2468 for (auto *arg : args.filtered(OPT_trace_symbol)) in link()
2515 for (StringRef pat : args::getStrings(args, OPT_undefined_glob)) in link()
2546 std::vector<WrappedSymbol> wrapped = addWrappedSymbols(args); in link()
2579 if (args.hasArg(OPT_exclude_libs)) in link()
2580 excludeLibs(args); in link()
2642 if (args.hasArg(OPT_exclude_libs)) in link()
2643 excludeLibs(args); in link()
2714 config->maxPageSize = getMaxPageSize(args); in link()
2720 config->commonPageSize = getCommonPageSize(args); in link()
2722 config->imageBase = getImageBase(args); in link()
2789 invokeELFT(findKeepUniqueSections, args); in link()
2795 if (auto *arg = args.getLastArg(OPT_call_graph_ordering_file)) in link()