[lld] r263876 - [ELF] - ignore the -rpath-link option

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 19 04:15:57 PDT 2016

Author: grimar
Date: Sat Mar 19 06:15:54 2016
New Revision: 263876

URL: http://llvm.org/viewvc/llvm-project?rev=263876&view=rev
[ELF] - ignore the -rpath-link option

Just ignore the -rpath-link command line
option in the same way like gold do.

Behavior of lld/gold differs from gnu ld here.
GNU ld tries to resolve undefined symbols in all
shared object files at link time.

Differential revision: http://reviews.llvm.org/D18269


Modified: lld/trunk/ELF/Options.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Options.td?rev=263876&r1=263875&r2=263876&view=diff
--- lld/trunk/ELF/Options.td (original)
+++ lld/trunk/ELF/Options.td Sat Mar 19 06:15:54 2016
@@ -197,6 +197,7 @@ def no_add_needed : Flag<["--"], "no-add
 def no_fatal_warnings : Flag<["--"], "no-fatal-warnings">;
 def no_warn_common : Flag<["--", "-"], "no-warn-common">;
 def no_warn_mismatch : Flag<["--"], "no-warn-mismatch">;
+def rpath_link : Separate<["--", "-"], "rpath-link">;
 def version_script : Separate<["--"], "version-script">;
 def warn_shared_textrel : Flag<["--"], "warn-shared-textrel">;
 def G : Separate<["-"], "G">;

More information about the llvm-commits mailing list