From 11adb536e17b60b25be522c5e054b1255683d806 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Fri, 17 Nov 2017 08:17:36 +0000 Subject: [PATCH] Ignore -no-ctors-in-init-array. Patch by dxf@google.com. llvm-svn: 318513 --- lld/ELF/Options.td | 1 + lld/test/ELF/silent-ignore.test | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 lld/test/ELF/silent-ignore.test diff --git a/lld/ELF/Options.td b/lld/ELF/Options.td index e326f5b..fbb0f2d 100644 --- a/lld/ELF/Options.td +++ b/lld/ELF/Options.td @@ -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">; diff --git a/lld/test/ELF/silent-ignore.test b/lld/test/ELF/silent-ignore.test new file mode 100644 index 0000000..6655754 --- /dev/null +++ b/lld/test/ELF/silent-ignore.test @@ -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 -- 2.7.4