forked from OSchip/llvm-project
[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:
parent
352289b679
commit
a074fe41bf
|
@ -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">,
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue