[lld] r248967 - ELF2: Ignore some command line argument that clang passes to the linker.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 30 17:24:54 PDT 2015


Author: ruiu
Date: Wed Sep 30 19:24:54 2015
New Revision: 248967

URL: http://llvm.org/viewvc/llvm-project?rev=248967&view=rev
Log:
ELF2: Ignore some command line argument that clang passes to the linker.

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=248967&r1=248966&r2=248967&view=diff
==============================================================================
--- lld/trunk/ELF/Options.td (original)
+++ lld/trunk/ELF/Options.td Wed Sep 30 19:24:54 2015
@@ -61,3 +61,12 @@ def entry : Separate<["--", "-"], "entry
 
 def alias_entry : Separate<["-"], "e">,
      Alias<entry>;
+
+// Options listed below are silently ignored now.
+def as_needed : Flag<["--"], "as-needed">;
+def build_id : Flag<["--"], "build-id">;
+def eh_frame_hdr : Flag<["--"], "eh-frame-hdr">;
+def hash_style : Joined<["--"], "hash-style=">;
+def m : Separate<["-"], "m">;
+def no_as_needed : Flag<["--"], "no-as-needed">;
+def z : Separate<["-"], "z">;




More information about the llvm-commits mailing list