1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-25 01:14:32 +03:00
This commit is contained in:
Rui Ueyama 2021-03-04 00:30:34 +09:00
parent 96c600221d
commit 0e908f7d8b

View File

@ -145,9 +145,9 @@ static i64 parse_number(std::string opt, std::string_view value) {
static std::vector<std::string_view> get_input_files(std::span<std::string_view> args) { static std::vector<std::string_view> get_input_files(std::span<std::string_view> args) {
static std::unordered_set<std::string_view> needs_arg({ static std::unordered_set<std::string_view> needs_arg({
"o", "dynamic-linker", "export-dynamic", "e", "entry", "y", "o", "dynamic-linker", "e", "entry", "y", "trace-symbol",
"trace-symbol", "filler", "sysroot", "thread-count", "z", "filler", "sysroot", "thread-count", "z", "hash-style", "m",
"hash-style", "m", "rpath", "version-script", "rpath", "version-script",
}); });
std::vector<std::string_view> vec; std::vector<std::string_view> vec;
@ -203,12 +203,12 @@ Config parse_nonpositional_args(std::span<std::string_view> args,
conf.dynamic_linker = arg; conf.dynamic_linker = arg;
} else if (read_flag(args, "export-dynamic") || read_flag(args, "E")) { } else if (read_flag(args, "export-dynamic") || read_flag(args, "E")) {
conf.export_dynamic = true; conf.export_dynamic = true;
} else if (read_flag(args, "no-export-dynamic")) {
conf.export_dynamic = false;
} else if (read_flag(args, "Bsymbolic")) { } else if (read_flag(args, "Bsymbolic")) {
conf.Bsymbolic = true; conf.Bsymbolic = true;
} else if (read_flag(args, "Bsymbolic-functions")) { } else if (read_flag(args, "Bsymbolic-functions")) {
conf.Bsymbolic_functions = true; conf.Bsymbolic_functions = true;
} else if (read_flag(args, "no-export-dynamic")) {
conf.export_dynamic = false;
} else if (read_arg(args, arg, "e") || read_arg(args, arg, "entry")) { } else if (read_arg(args, arg, "e") || read_arg(args, arg, "entry")) {
conf.entry = arg; conf.entry = arg;
} else if (read_flag(args, "print-map")) { } else if (read_flag(args, "print-map")) {