[PATCH] D123223: [lld] Ignore --no-add-needed

Alex Xu (Hello71) via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 6 08:26:39 PDT 2022


alxu created this revision.
Herald added subscribers: arichardson, emaste.
Herald added a reviewer: MaskRay.
Herald added a project: All.
alxu requested review of this revision.
Herald added subscribers: llvm-commits, StephenFan.
Herald added a project: LLVM.

It is the original version of --no-copy-dt-needed-entries. Some programs unfortunately use it without checking.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D123223

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
@@ -2,6 +2,7 @@
 RUN:   -detect-odr-violations \
 RUN:   -g \
 RUN:   -long-plt \
+RUN:   -no-add-needed \
 RUN:   -no-copy-dt-needed-entries \
 RUN:   -no-ctors-in-init-array \
 RUN:   -no-keep-memory \
Index: lld/ELF/Options.td
===================================================================
--- lld/ELF/Options.td
+++ lld/ELF/Options.td
@@ -695,6 +695,7 @@
 def: F<"detect-odr-violations">;
 def: Flag<["-"], "g">;
 def: F<"long-plt">;
+def: F<"no-add-needed">;
 def: F<"no-copy-dt-needed-entries">;
 def: F<"no-ctors-in-init-array">;
 def: F<"no-keep-memory">;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123223.420879.patch
Type: text/x-patch
Size: 748 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220406/a1d49868/attachment.bin>


More information about the llvm-commits mailing list