[ELF] Accept --soname= (two dashes).

Update an existing test to exercise the new functionality, while
I'm here.

llvm-svn: 273175
This commit is contained in:
Davide Italiano 2016-06-20 17:58:09 +00:00
parent 352289b679
commit a074fe41bf
2 changed files with 2 additions and 2 deletions

View File

@ -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">,

View File

@ -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