diff --git a/lld/ELF/Options.td b/lld/ELF/Options.td --- a/lld/ELF/Options.td +++ b/lld/ELF/Options.td @@ -355,6 +355,11 @@ "Enable target-specific relaxations if supported (default)", "Disable target-specific relaxations">; +// It is likely that we will eventually need to implement these +defm relax_gp: BB<"relax-gp", + "Ignored for compatibility with GNU linkers", + "Ignored for compatibility with GNU linkers">; + defm reproduce: EEq<"reproduce", "Write tar file containing inputs and command to reproduce link">; diff --git a/lld/test/ELF/ignore-relax-gp.test b/lld/test/ELF/ignore-relax-gp.test new file mode 100644 --- /dev/null +++ b/lld/test/ELF/ignore-relax-gp.test @@ -0,0 +1,3 @@ +RUN: not ld.lld --relax-gp 2>&1 | FileCheck %s +RUN: not ld.lld --no-relax-gp 2>&1 | FileCheck %s +CHECK: no input files