diff --git a/commandline.cc b/commandline.cc index a1d90827..02019622 100644 --- a/commandline.cc +++ b/commandline.cc @@ -145,9 +145,9 @@ static i64 parse_number(std::string opt, std::string_view value) { static std::vector get_input_files(std::span args) { static std::unordered_set 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 vec; @@ -203,12 +203,12 @@ Config parse_nonpositional_args(std::span 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")) {