Index: lld/ELF/Options.td =================================================================== --- lld/ELF/Options.td +++ lld/ELF/Options.td @@ -443,7 +443,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: lld/test/ELF/ignore-plugin.test =================================================================== --- /dev/null +++ lld/test/ELF/ignore-plugin.test @@ -0,0 +1,2 @@ +RUN: not ld.lld --plugin foo 2>&1 | FileCheck %s +CHECK: no input files