Index: ELF/Options.td =================================================================== --- ELF/Options.td +++ ELF/Options.td @@ -450,7 +450,7 @@ // just ignore the option on lld side as it's easier. In fact, the linker could // be called 'ld' and understanding which linker is used would require parsing of // --version output. -def plugin: J<"plugin">; +defm plugin: Eq<"plugin", "Ignored for compatibility with GNU linkers">; def plugin_opt_fresolution_eq: J<"plugin-opt=-fresolution=">; def plugin_opt_pass_through_eq: J<"plugin-opt=-pass-through=">; Index: test/ELF/ignore-plugin.test =================================================================== --- test/ELF/ignore-plugin.test +++ test/ELF/ignore-plugin.test @@ -0,0 +1,2 @@ +RUN: not ld.lld --plugin foo 2>&1 | FileCheck %s +CHECK: no input files