[PATCH] D147983: [lld][driver] Add `--relax-gp`/`no-relax-gp` flags for GNU compatibility

Paul Kirth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 11 13:35:44 PDT 2023


paulkirth updated this revision to Diff 512564.
paulkirth added a comment.

Fix whitespace and simplify test.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147983/new/

https://reviews.llvm.org/D147983

Files:
  lld/ELF/Options.td
  lld/test/ELF/silent-ignore.test


Index: lld/test/ELF/silent-ignore.test
===================================================================
--- lld/test/ELF/silent-ignore.test
+++ lld/test/ELF/silent-ignore.test
@@ -7,6 +7,8 @@
 RUN:   -no-ctors-in-init-array \
 RUN:   -no-keep-memory \
 RUN:   --no-relax \
+RUN:   --no-relax \
+RUN:   --no-relax-gp \
 RUN:   -no-warn-mismatch \
 RUN:   -rpath-link . \
 RUN:   -secure-plt \
@@ -20,6 +22,7 @@
 RUN:   -G 0
 RUN: not ld.lld --version --not-an-ignored-argument
 
+
 Test some options that we reject (including those what we used to silently ignore).
 
 --detect-odr-violations is a gold-specific option that we don't implement and if
Index: lld/ELF/Options.td
===================================================================
--- lld/ELF/Options.td
+++ lld/ELF/Options.td
@@ -711,6 +711,8 @@
 def: F<"warn-once">;
 def: F<"warn-shared-textrel">;
 def: JoinedOrSeparate<["-"], "G">;
+def: F<"relax-gp">;
+def: F<"no-relax-gp">;
 
 // Hidden option used for testing MIPS multi-GOT implementation.
 defm mips_got_size:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147983.512564.patch
Type: text/x-patch
Size: 1036 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230411/75c0e42e/attachment.bin>


More information about the llvm-commits mailing list