[lld] r318513 - Ignore -no-ctors-in-init-array.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 17 00:17:36 PST 2017


Author: ruiu
Date: Fri Nov 17 00:17:36 2017
New Revision: 318513

URL: http://llvm.org/viewvc/llvm-project?rev=318513&view=rev
Log:
Ignore -no-ctors-in-init-array.

Patch by dxf at google.com.

Added:
    lld/trunk/test/ELF/silent-ignore.test
Modified:
    lld/trunk/ELF/Options.td

Modified: lld/trunk/ELF/Options.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Options.td?rev=318513&r1=318512&r2=318513&view=diff
==============================================================================
--- lld/trunk/ELF/Options.td (original)
+++ lld/trunk/ELF/Options.td Fri Nov 17 00:17:36 2017
@@ -406,6 +406,7 @@ def g: Flag<["-"], "g">;
 def no_add_needed: F<"no-add-needed">;
 def no_allow_shlib_undefined: F<"no-allow-shlib-undefined">;
 def no_copy_dt_needed_entries: F<"no-copy-dt-needed-entries">;
+def no_ctors_in_init_array: F<"no-ctors-in-init-array">;
 def no_keep_memory: F<"no-keep-memory">;
 def no_mmap_output_file: F<"no-mmap-output-file">;
 def no_warn_common: F<"no-warn-common">;

Added: lld/trunk/test/ELF/silent-ignore.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/silent-ignore.test?rev=318513&view=auto
==============================================================================
--- lld/trunk/test/ELF/silent-ignore.test (added)
+++ lld/trunk/test/ELF/silent-ignore.test Fri Nov 17 00:17:36 2017
@@ -0,0 +1,20 @@
+RUN: ld.lld --version \
+RUN:   -allow-shlib-undefined \
+RUN:   -cref \
+RUN:   -g \
+RUN:   -no-add-needed \
+RUN:   -no-allow-shlib-undefined \
+RUN:   -no-copy-dt-needed-entries \
+RUN:   -no-ctors-in-init-array \
+RUN:   -no-keep-memory \
+RUN:   -no-warn-common \
+RUN:   -no-warn-mismatch \
+RUN:   -sort-common \
+RUN:   -stats \
+RUN:   -warn-execstack \
+RUN:   -warn-once \
+RUN:   -warn-shared-textrel \
+RUN:   -EB \
+RUN:   -EL \
+RUN:   -Qy
+RUN: not ld.lld --version --not-an-ignored-argument




More information about the llvm-commits mailing list