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