[PATCH] D81359: [ELF] Ignore --no-relax for RISC-V

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 7 09:48:34 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG09b81a72ac67: [ELF] Ignore --no-relax for RISC-V (authored by MaskRay).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D81359

Files:
  lld/ELF/Options.td
  lld/docs/ld.lld.1
  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,7 @@
 RUN:   -no-ctors-in-init-array \
 RUN:   -no-keep-memory \
 RUN:   -no-pipeline-knowledge \
+RUN:   --no-relax \
 RUN:   -no-warn-mismatch \
 RUN:   -p \
 RUN:   -rpath-link . \
Index: lld/docs/ld.lld.1
===================================================================
--- lld/docs/ld.lld.1
+++ lld/docs/ld.lld.1
@@ -308,6 +308,8 @@
 Page align sections.
 .It Fl -no-omagic
 Do not set the text data sections to be writable, page align sections.
+.It Fl -no-relax
+Disable target-specific relaxations. This is currently a no-op.
 .It Fl -no-rosegment
 Do not put read-only non-executable sections in their own segment.
 .It Fl -no-undefined-version
Index: lld/ELF/Options.td
===================================================================
--- lld/ELF/Options.td
+++ lld/ELF/Options.td
@@ -635,6 +635,7 @@
 def: F<"no-ctors-in-init-array">;
 def: F<"no-keep-memory">;
 def: F<"no-pipeline-knowledge">;
+def: F<"no-relax">;
 def: F<"no-warn-mismatch">;
 def: Flag<["-"], "p">;
 def: Separate<["--", "-"], "rpath-link">;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81359.276109.patch
Type: text/x-patch
Size: 1220 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200707/46dfab3c/attachment.bin>


More information about the llvm-commits mailing list