Lines Matching refs:args
77 static void setConfigs(opt::InputArgList &args);
78 static void readConfigs(opt::InputArgList &args);
80 bool elf::link(ArrayRef<const char *> args, bool canExitEarly, in link() argument
106 errorHandler().logName = args::getFilenameWithoutExe(args[0]); in link()
120 config->progName = args[0]; in link()
122 driver->linkerMain(args); in link()
379 static const char *getReproduceOption(opt::InputArgList &args) { in getReproduceOption() argument
380 if (auto *arg = args.getLastArg(OPT_reproduce)) in getReproduceOption()
385 static bool hasZOption(opt::InputArgList &args, StringRef key) { in hasZOption() argument
386 for (auto *arg : args.filtered(OPT_z)) in hasZOption()
392 static bool getZFlag(opt::InputArgList &args, StringRef k1, StringRef k2, in getZFlag() argument
394 for (auto *arg : args.filtered_reverse(OPT_z)) { in getZFlag()
403 static SeparateSegmentKind getZSeparate(opt::InputArgList &args) { in getZSeparate() argument
404 for (auto *arg : args.filtered_reverse(OPT_z)) { in getZSeparate()
416 static GnuStackKind getZGnuStack(opt::InputArgList &args) { in getZGnuStack() argument
417 for (auto *arg : args.filtered_reverse(OPT_z)) { in getZGnuStack()
429 static uint8_t getZStartStopVisibility(opt::InputArgList &args) { in getZStartStopVisibility() argument
430 for (auto *arg : args.filtered_reverse(OPT_z)) { in getZStartStopVisibility()
469 static void checkZOptions(opt::InputArgList &args) { in checkZOptions() argument
470 for (auto *arg : args.filtered(OPT_z)) in checkZOptions()
477 opt::InputArgList args = parser.parse(argsArr.slice(1)); in linkerMain() local
480 errorHandler().errorLimit = args::getInteger(args, OPT_error_limit, 20); in linkerMain()
481 checkZOptions(args); in linkerMain()
484 if (args.hasArg(OPT_help)) { in linkerMain()
504 if (args.hasArg(OPT_v) || args.hasArg(OPT_version)) in linkerMain()
507 if (const char *path = getReproduceOption(args)) { in linkerMain()
514 tar->append("response.txt", createResponseFile(args)); in linkerMain()
516 StringRef ltoSampleProfile = args.getLastArgValue(OPT_lto_sample_profile); in linkerMain()
524 readConfigs(args); in linkerMain()
528 if (args.hasArg(OPT_v) && !args.hasArg(OPT_INPUT)) in linkerMain()
530 if (args.hasArg(OPT_version)) in linkerMain()
541 createFiles(args); in linkerMain()
546 setConfigs(args); in linkerMain()
558 link<ELF32LE>(args); in linkerMain()
561 link<ELF32BE>(args); in linkerMain()
564 link<ELF64LE>(args); in linkerMain()
567 link<ELF64BE>(args); in linkerMain()
575 if (auto E = timeTraceProfilerWrite(args.getLastArgValue(OPT_time_trace_file_eq).str(), in linkerMain()
587 static std::string getRpath(opt::InputArgList &args) { in getRpath() argument
588 std::vector<StringRef> v = args::getStrings(args, OPT_rpath); in getRpath()
594 static void setUnresolvedSymbolPolicy(opt::InputArgList &args) { in setUnresolvedSymbolPolicy() argument
595 UnresolvedPolicy errorOrWarn = args.hasFlag(OPT_error_unresolved_symbols, in setUnresolvedSymbolPolicy()
603 for (const opt::Arg *arg : args) { in setUnresolvedSymbolPolicy()
648 static Target2Policy getTarget2(opt::InputArgList &args) { in getTarget2() argument
649 StringRef s = args.getLastArgValue(OPT_target2, "got-rel"); in getTarget2()
660 static bool isOutputFormatBinary(opt::InputArgList &args) { in isOutputFormatBinary() argument
661 StringRef s = args.getLastArgValue(OPT_oformat, "elf"); in isOutputFormatBinary()
669 static DiscardPolicy getDiscard(opt::InputArgList &args) { in getDiscard() argument
671 args.getLastArg(OPT_discard_all, OPT_discard_locals, OPT_discard_none); in getDiscard()
681 static StringRef getDynamicLinker(opt::InputArgList &args) { in getDynamicLinker() argument
682 auto *arg = args.getLastArg(OPT_dynamic_linker, OPT_no_dynamic_linker); in getDynamicLinker()
693 static ICFLevel getICF(opt::InputArgList &args) { in getICF() argument
694 auto *arg = args.getLastArg(OPT_icf_none, OPT_icf_safe, OPT_icf_all); in getICF()
702 static StripPolicy getStrip(opt::InputArgList &args) { in getStrip() argument
703 if (args.hasArg(OPT_relocatable)) in getStrip()
706 auto *arg = args.getLastArg(OPT_strip_all, OPT_strip_debug); in getStrip()
714 static uint64_t parseSectionAddress(StringRef s, opt::InputArgList &args, in parseSectionAddress() argument
720 error("invalid argument: " + arg.getAsString(args)); in parseSectionAddress()
724 static StringMap<uint64_t> getSectionStartMap(opt::InputArgList &args) { in getSectionStartMap() argument
726 for (auto *arg : args.filtered(OPT_section_start)) { in getSectionStartMap()
730 ret[name] = parseSectionAddress(addr, args, *arg); in getSectionStartMap()
733 if (auto *arg = args.getLastArg(OPT_Ttext)) in getSectionStartMap()
734 ret[".text"] = parseSectionAddress(arg->getValue(), args, *arg); in getSectionStartMap()
735 if (auto *arg = args.getLastArg(OPT_Tdata)) in getSectionStartMap()
736 ret[".data"] = parseSectionAddress(arg->getValue(), args, *arg); in getSectionStartMap()
737 if (auto *arg = args.getLastArg(OPT_Tbss)) in getSectionStartMap()
738 ret[".bss"] = parseSectionAddress(arg->getValue(), args, *arg); in getSectionStartMap()
742 static SortSectionPolicy getSortSection(opt::InputArgList &args) { in getSortSection() argument
743 StringRef s = args.getLastArgValue(OPT_sort_section); in getSortSection()
753 static OrphanHandlingPolicy getOrphanHandling(opt::InputArgList &args) { in getOrphanHandling() argument
754 StringRef s = args.getLastArgValue(OPT_orphan_handling, "place"); in getOrphanHandling()
766 static bool getP10StubOpt(opt::InputArgList &args) { in getP10StubOpt() argument
768 if (args.getLastArgValue(OPT_power10_stubs_eq)== "no") in getP10StubOpt()
771 if (!args.hasArg(OPT_power10_stubs_eq) && in getP10StubOpt()
772 args.hasArg(OPT_no_power10_stubs)) in getP10StubOpt()
782 getBuildId(opt::InputArgList &args) { in getBuildId() argument
783 auto *arg = args.getLastArg(OPT_build_id, OPT_build_id_eq); in getBuildId()
807 static std::pair<bool, bool> getPackDynRelocs(opt::InputArgList &args) { in getPackDynRelocs() argument
808 StringRef s = args.getLastArgValue(OPT_pack_dyn_relocs, "none"); in getPackDynRelocs()
842 for (StringRef line : args::getLines(mb)) { in readCallGraph()
929 static bool getCompressDebugSections(opt::InputArgList &args) { in getCompressDebugSections() argument
930 StringRef s = args.getLastArgValue(OPT_compress_debug_sections, "none"); in getCompressDebugSections()
946 static std::pair<StringRef, StringRef> getOldNewOptions(opt::InputArgList &args, in getOldNewOptions() argument
948 auto *arg = args.getLastArg(id); in getOldNewOptions()
962 for (StringRef s : args::getLines(mb)) in getSymbolOrderingFile()
969 static bool getIsRela(opt::InputArgList &args) { in getIsRela() argument
971 for (auto *arg : args.filtered_reverse(OPT_z)) { in getIsRela()
997 static void readConfigs(opt::InputArgList &args) { in readConfigs() argument
998 errorHandler().verbose = args.hasArg(OPT_verbose); in readConfigs()
1000 args.hasFlag(OPT_fatal_warnings, OPT_no_fatal_warnings, false); in readConfigs()
1002 args.hasArg(OPT_visual_studio_diagnostics_format, false); in readConfigs()
1005 args.hasFlag(OPT_allow_multiple_definition, in readConfigs()
1007 hasZOption(args, "muldefs"); in readConfigs()
1008 config->auxiliaryList = args::getStrings(args, OPT_auxiliary); in readConfigs()
1010 args.getLastArg(OPT_Bno_symbolic, OPT_Bsymbolic_non_weak_functions, in readConfigs()
1020 args.hasFlag(OPT_check_sections, OPT_no_check_sections, true); in readConfigs()
1021 config->chroot = args.getLastArgValue(OPT_chroot); in readConfigs()
1022 config->compressDebugSections = getCompressDebugSections(args); in readConfigs()
1023 config->cref = args.hasArg(OPT_cref); in readConfigs()
1024 config->defineCommon = args.hasFlag(OPT_define_common, OPT_no_define_common, in readConfigs()
1025 !args.hasArg(OPT_relocatable)); in readConfigs()
1027 args.hasFlag(OPT_optimize_bb_jumps, OPT_no_optimize_bb_jumps, false); in readConfigs()
1028 config->demangle = args.hasFlag(OPT_demangle, OPT_no_demangle, true); in readConfigs()
1029 config->dependencyFile = args.getLastArgValue(OPT_dependency_file); in readConfigs()
1030 …config->dependentLibraries = args.hasFlag(OPT_dependent_libraries, OPT_no_dependent_libraries, tru… in readConfigs()
1031 config->disableVerify = args.hasArg(OPT_disable_verify); in readConfigs()
1032 config->discard = getDiscard(args); in readConfigs()
1033 config->dwoDir = args.getLastArgValue(OPT_plugin_opt_dwo_dir_eq); in readConfigs()
1034 config->dynamicLinker = getDynamicLinker(args); in readConfigs()
1036 args.hasFlag(OPT_eh_frame_hdr, OPT_no_eh_frame_hdr, false); in readConfigs()
1037 config->emitLLVM = args.hasArg(OPT_plugin_opt_emit_llvm, false); in readConfigs()
1038 config->emitRelocs = args.hasArg(OPT_emit_relocs); in readConfigs()
1039 config->callGraphProfileSort = args.hasFlag( in readConfigs()
1042 args.hasFlag(OPT_enable_new_dtags, OPT_disable_new_dtags, true); in readConfigs()
1043 config->entry = args.getLastArgValue(OPT_entry); in readConfigs()
1046 args.getLastArgValue(OPT_error_handling_script); in readConfigs()
1049 args.hasFlag(OPT_execute_only, OPT_no_execute_only, false); in readConfigs()
1051 args.hasFlag(OPT_export_dynamic, OPT_no_export_dynamic, false); in readConfigs()
1052 config->filterList = args::getStrings(args, OPT_filter); in readConfigs()
1053 config->fini = args.getLastArgValue(OPT_fini, "_fini"); in readConfigs()
1054 config->fixCortexA53Errata843419 = args.hasArg(OPT_fix_cortex_a53_843419) && in readConfigs()
1055 !args.hasArg(OPT_relocatable); in readConfigs()
1057 args.hasArg(OPT_fix_cortex_a8) && !args.hasArg(OPT_relocatable); in readConfigs()
1059 args.hasFlag(OPT_fortran_common, OPT_no_fortran_common, true); in readConfigs()
1060 config->gcSections = args.hasFlag(OPT_gc_sections, OPT_no_gc_sections, false); in readConfigs()
1061 config->gnuUnique = args.hasFlag(OPT_gnu_unique, OPT_no_gnu_unique, true); in readConfigs()
1062 config->gdbIndex = args.hasFlag(OPT_gdb_index, OPT_no_gdb_index, false); in readConfigs()
1063 config->icf = getICF(args); in readConfigs()
1065 args.hasArg(OPT_ignore_data_address_equality); in readConfigs()
1067 args.hasArg(OPT_ignore_function_address_equality); in readConfigs()
1068 config->init = args.getLastArgValue(OPT_init, "_init"); in readConfigs()
1069 config->ltoAAPipeline = args.getLastArgValue(OPT_lto_aa_pipeline); in readConfigs()
1070 config->ltoCSProfileGenerate = args.hasArg(OPT_lto_cs_profile_generate); in readConfigs()
1071 config->ltoCSProfileFile = args.getLastArgValue(OPT_lto_cs_profile_file); in readConfigs()
1072 config->ltoDebugPassManager = args.hasArg(OPT_lto_debug_pass_manager); in readConfigs()
1073 config->ltoEmitAsm = args.hasArg(OPT_lto_emit_asm); in readConfigs()
1075 args.hasFlag(OPT_no_lto_legacy_pass_manager, OPT_lto_legacy_pass_manager, in readConfigs()
1077 config->ltoNewPmPasses = args.getLastArgValue(OPT_lto_newpm_passes); in readConfigs()
1079 args.hasFlag(OPT_lto_whole_program_visibility, in readConfigs()
1081 config->ltoo = args::getInteger(args, OPT_lto_O, 2); in readConfigs()
1082 config->ltoObjPath = args.getLastArgValue(OPT_lto_obj_path_eq); in readConfigs()
1083 config->ltoPartitions = args::getInteger(args, OPT_lto_partitions, 1); in readConfigs()
1085 args.hasArg(OPT_lto_pseudo_probe_for_profiling); in readConfigs()
1086 config->ltoSampleProfile = args.getLastArgValue(OPT_lto_sample_profile); in readConfigs()
1088 args.getLastArgValue(OPT_lto_basic_block_sections); in readConfigs()
1090 args.hasFlag(OPT_lto_unique_basic_block_section_names, in readConfigs()
1092 config->mapFile = args.getLastArgValue(OPT_Map); in readConfigs()
1093 config->mipsGotSize = args::getInteger(args, OPT_mips_got_size, 0xfff0); in readConfigs()
1095 args.hasFlag(OPT_merge_exidx_entries, OPT_no_merge_exidx_entries, true); in readConfigs()
1097 args.hasFlag(OPT_mmap_output_file, OPT_no_mmap_output_file, true); in readConfigs()
1098 config->nmagic = args.hasFlag(OPT_nmagic, OPT_no_nmagic, false); in readConfigs()
1099 config->noinhibitExec = args.hasArg(OPT_noinhibit_exec); in readConfigs()
1100 config->nostdlib = args.hasArg(OPT_nostdlib); in readConfigs()
1101 config->oFormatBinary = isOutputFormatBinary(args); in readConfigs()
1102 config->omagic = args.hasFlag(OPT_omagic, OPT_no_omagic, false); in readConfigs()
1103 config->optRemarksFilename = args.getLastArgValue(OPT_opt_remarks_filename); in readConfigs()
1106 if (auto *arg = args.getLastArg(OPT_opt_remarks_hotness_threshold)) { in readConfigs()
1115 config->optRemarksPasses = args.getLastArgValue(OPT_opt_remarks_passes); in readConfigs()
1116 config->optRemarksWithHotness = args.hasArg(OPT_opt_remarks_with_hotness); in readConfigs()
1117 config->optRemarksFormat = args.getLastArgValue(OPT_opt_remarks_format); in readConfigs()
1118 config->optimize = args::getInteger(args, OPT_O, 1); in readConfigs()
1119 config->orphanHandling = getOrphanHandling(args); in readConfigs()
1120 config->outputFile = args.getLastArgValue(OPT_o); in readConfigs()
1121 config->pie = args.hasFlag(OPT_pie, OPT_no_pie, false); in readConfigs()
1123 args.hasFlag(OPT_print_icf_sections, OPT_no_print_icf_sections, false); in readConfigs()
1125 args.hasFlag(OPT_print_gc_sections, OPT_no_print_gc_sections, false); in readConfigs()
1126 config->printArchiveStats = args.getLastArgValue(OPT_print_archive_stats); in readConfigs()
1128 args.getLastArgValue(OPT_print_symbol_order); in readConfigs()
1129 config->rpath = getRpath(args); in readConfigs()
1130 config->relocatable = args.hasArg(OPT_relocatable); in readConfigs()
1131 config->saveTemps = args.hasArg(OPT_save_temps); in readConfigs()
1132 config->searchPaths = args::getStrings(args, OPT_library_path); in readConfigs()
1133 config->sectionStartMap = getSectionStartMap(args); in readConfigs()
1134 config->shared = args.hasArg(OPT_shared); in readConfigs()
1135 config->singleRoRx = !args.hasFlag(OPT_rosegment, OPT_no_rosegment, true); in readConfigs()
1136 config->soName = args.getLastArgValue(OPT_soname); in readConfigs()
1137 config->sortSection = getSortSection(args); in readConfigs()
1138 config->splitStackAdjustSize = args::getInteger(args, OPT_split_stack_adjust_size, 16384); in readConfigs()
1139 config->strip = getStrip(args); in readConfigs()
1140 config->sysroot = args.getLastArgValue(OPT_sysroot); in readConfigs()
1141 config->target1Rel = args.hasFlag(OPT_target1_rel, OPT_target1_abs, false); in readConfigs()
1142 config->target2 = getTarget2(args); in readConfigs()
1143 config->thinLTOCacheDir = args.getLastArgValue(OPT_thinlto_cache_dir); in readConfigs()
1145 parseCachePruningPolicy(args.getLastArgValue(OPT_thinlto_cache_policy)), in readConfigs()
1147 config->thinLTOEmitImportsFiles = args.hasArg(OPT_thinlto_emit_imports_files); in readConfigs()
1148 config->thinLTOIndexOnly = args.hasArg(OPT_thinlto_index_only) || in readConfigs()
1149 args.hasArg(OPT_thinlto_index_only_eq); in readConfigs()
1150 config->thinLTOIndexOnlyArg = args.getLastArgValue(OPT_thinlto_index_only_eq); in readConfigs()
1152 getOldNewOptions(args, OPT_thinlto_object_suffix_replace_eq); in readConfigs()
1154 getOldNewOptions(args, OPT_thinlto_prefix_replace_eq); in readConfigs()
1156 args::getStrings(args, OPT_thinlto_single_module_eq); in readConfigs()
1157 config->timeTraceEnabled = args.hasArg(OPT_time_trace); in readConfigs()
1159 args::getInteger(args, OPT_time_trace_granularity, 500); in readConfigs()
1160 config->trace = args.hasArg(OPT_trace); in readConfigs()
1161 config->undefined = args::getStrings(args, OPT_undefined); in readConfigs()
1163 args.hasFlag(OPT_undefined_version, OPT_no_undefined_version, true); in readConfigs()
1164 config->unique = args.hasArg(OPT_unique); in readConfigs()
1165 config->useAndroidRelrTags = args.hasFlag( in readConfigs()
1168 args.hasFlag(OPT_warn_backrefs, OPT_no_warn_backrefs, false); in readConfigs()
1169 config->warnCommon = args.hasFlag(OPT_warn_common, OPT_no_warn_common, false); in readConfigs()
1171 args.hasFlag(OPT_warn_symbol_ordering, OPT_no_warn_symbol_ordering, true); in readConfigs()
1172 config->zCombreloc = getZFlag(args, "combreloc", "nocombreloc", true); in readConfigs()
1173 config->zCopyreloc = getZFlag(args, "copyreloc", "nocopyreloc", true); in readConfigs()
1174 config->zForceBti = hasZOption(args, "force-bti"); in readConfigs()
1175 config->zForceIbt = hasZOption(args, "force-ibt"); in readConfigs()
1176 config->zGlobal = hasZOption(args, "global"); in readConfigs()
1177 config->zGnustack = getZGnuStack(args); in readConfigs()
1178 config->zHazardplt = hasZOption(args, "hazardplt"); in readConfigs()
1179 config->zIfuncNoplt = hasZOption(args, "ifunc-noplt"); in readConfigs()
1180 config->zInitfirst = hasZOption(args, "initfirst"); in readConfigs()
1181 config->zInterpose = hasZOption(args, "interpose"); in readConfigs()
1183 args, "keep-text-section-prefix", "nokeep-text-section-prefix", false); in readConfigs()
1184 config->zNodefaultlib = hasZOption(args, "nodefaultlib"); in readConfigs()
1185 config->zNodelete = hasZOption(args, "nodelete"); in readConfigs()
1186 config->zNodlopen = hasZOption(args, "nodlopen"); in readConfigs()
1187 config->zNow = getZFlag(args, "now", "lazy", false); in readConfigs()
1188 config->zOrigin = hasZOption(args, "origin"); in readConfigs()
1189 config->zPacPlt = hasZOption(args, "pac-plt"); in readConfigs()
1190 config->zRelro = getZFlag(args, "relro", "norelro", true); in readConfigs()
1191 config->zRetpolineplt = hasZOption(args, "retpolineplt"); in readConfigs()
1192 config->zRodynamic = hasZOption(args, "rodynamic"); in readConfigs()
1193 config->zSeparate = getZSeparate(args); in readConfigs()
1194 config->zShstk = hasZOption(args, "shstk"); in readConfigs()
1195 config->zStackSize = args::getZOptionValue(args, OPT_z, "stack-size", 0); in readConfigs()
1197 getZFlag(args, "start-stop-gc", "nostart-stop-gc", true); in readConfigs()
1198 config->zStartStopVisibility = getZStartStopVisibility(args); in readConfigs()
1199 config->zText = getZFlag(args, "text", "notext", true); in readConfigs()
1200 config->zWxneeded = hasZOption(args, "wxneeded"); in readConfigs()
1201 setUnresolvedSymbolPolicy(args); in readConfigs()
1202 config->Power10Stub = getP10StubOpt(args); in readConfigs()
1204 if (opt::Arg *arg = args.getLastArg(OPT_eb, OPT_el)) { in readConfigs()
1211 for (opt::Arg *arg : args.filtered(OPT_shuffle_sections)) { in readConfigs()
1229 for (opt::Arg *arg : args.filtered(OPT_z)) { in readConfigs()
1253 if (auto *arg = args.getLastArg(OPT_plugin_opt_mcpu_eq)) in readConfigs()
1257 for (opt::Arg *arg : args.filtered(OPT_plugin_opt_eq_minus)) in readConfigs()
1263 for (opt::Arg *arg : args.filtered(OPT_plugin_opt_eq)) in readConfigs()
1269 for (auto *arg : args.filtered(OPT_mllvm)) in readConfigs()
1274 if (auto *arg = args.getLastArg(OPT_threads)) { in readConfigs()
1283 if (auto *arg = args.getLastArg(OPT_thinlto_jobs)) in readConfigs()
1300 if (args.hasArg(OPT_Ttext_segment)) in readConfigs()
1305 if (auto *arg = args.getLastArg(OPT_m)) { in readConfigs()
1315 if (auto *arg = args.getLastArg(OPT_hash_style)) { in readConfigs()
1327 if (args.hasArg(OPT_print_map)) in readConfigs()
1336 std::tie(config->buildId, config->buildIdVector) = getBuildId(args); in readConfigs()
1339 getPackDynRelocs(args); in readConfigs()
1341 if (auto *arg = args.getLastArg(OPT_symbol_ordering_file)){ in readConfigs()
1342 if (args.hasArg(OPT_call_graph_ordering_file)) in readConfigs()
1361 if (auto *arg = args.getLastArg(OPT_retain_symbols_file)) { in readConfigs()
1365 for (StringRef s : args::getLines(*buffer)) in readConfigs()
1370 for (opt::Arg *arg : args.filtered(OPT_warn_backrefs_exclude)) { in readConfigs()
1382 config->bsymbolic == BsymbolicKind::All || args.hasArg(OPT_dynamic_list); in readConfigs()
1383 for (auto *arg : args.filtered(OPT_dynamic_list)) in readConfigs()
1390 for (auto *arg : args.filtered(OPT_export_dynamic_symbol)) in readConfigs()
1395 for (auto *arg : args.filtered(OPT_version_script)) in readConfigs()
1408 static void setConfigs(opt::InputArgList &args) { in setConfigs() argument
1418 config->picThunk = args.hasArg(OPT_pic_veneer, config->isPic); in setConfigs()
1435 config->isRela = getIsRela(args); in setConfigs()
1442 config->writeAddends = args.hasFlag(OPT_apply_dynamic_relocs, in setConfigs()
1456 args.hasFlag(OPT_check_dynamic_relocations, in setConfigs()
1459 args.hasFlag(OPT_toc_optimize, OPT_no_toc_optimize, m == EM_PPC64); in setConfigs()
1461 args.hasFlag(OPT_pcrel_optimize, OPT_no_pcrel_optimize, m == EM_PPC64); in setConfigs()
1475 void LinkerDriver::createFiles(opt::InputArgList &args) { in createFiles() argument
1482 for (auto *arg : args) { in createFiles()
1600 static uint64_t getMaxPageSize(opt::InputArgList &args) { in getMaxPageSize() argument
1601 uint64_t val = args::getZOptionValue(args, OPT_z, "max-page-size", in getMaxPageSize()
1615 static uint64_t getCommonPageSize(opt::InputArgList &args) { in getCommonPageSize() argument
1616 uint64_t val = args::getZOptionValue(args, OPT_z, "common-page-size", in getCommonPageSize()
1632 static Optional<uint64_t> getImageBase(opt::InputArgList &args) { in getImageBase() argument
1635 auto *arg = args.getLastArg(OPT_image_base); in getImageBase()
1652 static DenseSet<StringRef> getExcludeLibs(opt::InputArgList &args) { in getExcludeLibs() argument
1654 for (auto *arg : args.filtered(OPT_exclude_libs)) { in getExcludeLibs()
1674 static void excludeLibs(opt::InputArgList &args) { in excludeLibs() argument
1675 DenseSet<StringRef> libs = getExcludeLibs(args); in excludeLibs()
1862 static void findKeepUniqueSections(opt::InputArgList &args) { in findKeepUniqueSections() argument
1863 for (auto *arg : args.filtered(OPT_keep_unique)) { in findKeepUniqueSections()
2017 static std::vector<WrappedSymbol> addWrappedSymbols(opt::InputArgList &args) { in addWrappedSymbols() argument
2021 for (auto *arg : args.filtered(OPT_wrap)) { in addWrappedSymbols()
2165 template <class ELFT> void LinkerDriver::link(opt::InputArgList &args) { in link() argument
2169 if (!args.hasArg(OPT_hash_style)) { in link()
2203 for (auto *arg : args.filtered(OPT_trace_symbol)) in link()
2247 for (StringRef pat : args::getStrings(args, OPT_undefined_glob)) in link()
2291 if (args.hasArg(OPT_exclude_libs)) in link()
2292 excludeLibs(args); in link()
2300 std::vector<WrappedSymbol> wrapped = addWrappedSymbols(args); in link()
2326 if (args.hasArg(OPT_exclude_libs)) in link()
2327 excludeLibs(args); in link()
2410 config->maxPageSize = getMaxPageSize(args); in link()
2416 config->commonPageSize = getCommonPageSize(args); in link()
2418 config->imageBase = getImageBase(args); in link()
2488 findKeepUniqueSections<ELFT>(args); in link()
2494 if (auto *arg = args.getLastArg(OPT_call_graph_ordering_file)) in link()