[lld] r273175 - [ELF] Accept --soname= (two dashes).
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 20 10:58:10 PDT 2016
Author: davide
Date: Mon Jun 20 12:58:09 2016
New Revision: 273175
URL: http://llvm.org/viewvc/llvm-project?rev=273175&view=rev
Log:
[ELF] Accept --soname= (two dashes).
Update an existing test to exercise the new functionality, while
I'm here.
Modified:
lld/trunk/ELF/Options.td
lld/trunk/test/ELF/soname.s
Modified: lld/trunk/ELF/Options.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Options.td?rev=273175&r1=273174&r2=273175&view=diff
==============================================================================
--- lld/trunk/ELF/Options.td (original)
+++ lld/trunk/ELF/Options.td Mon Jun 20 12:58:09 2016
@@ -135,7 +135,7 @@ def script : Separate<["--"], "script">,
def shared : Flag<["-"], "shared">,
HelpText<"Build a shared object">;
-def soname : Joined<["-"], "soname=">,
+def soname : Joined<["-", "--"], "soname=">,
HelpText<"Set DT_SONAME">;
def start_lib : Flag<["--"], "start-lib">,
Modified: lld/trunk/test/ELF/soname.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/soname.s?rev=273175&r1=273174&r2=273175&view=diff
==============================================================================
--- lld/trunk/test/ELF/soname.s (original)
+++ lld/trunk/test/ELF/soname.s Mon Jun 20 12:58:09 2016
@@ -1,6 +1,6 @@
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
// RUN: ld.lld %t.o -shared -soname=bar -o %t.so
-// RUN: ld.lld %t.o -shared -soname=bar -o %t2.so
+// RUN: ld.lld %t.o -shared --soname=bar -o %t2.so
// RUN: ld.lld %t.o %t.so %t2.so -o %t
// RUN: llvm-readobj --dynamic-table %t | FileCheck %s
More information about the llvm-commits
mailing list