[lld] r287711 - Accept -script=<file> in addition to -script <file>.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 22 14:54:04 PST 2016


Author: ruiu
Date: Tue Nov 22 16:54:03 2016
New Revision: 287711

URL: http://llvm.org/viewvc/llvm-project?rev=287711&view=rev
Log:
Accept -script=<file> in addition to -script <file>.

Fixes PR31126.

Modified:
    lld/trunk/ELF/Options.td
    lld/trunk/test/ELF/reproduce.s

Modified: lld/trunk/ELF/Options.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Options.td?rev=287711&r1=287710&r2=287711&view=diff
==============================================================================
--- lld/trunk/ELF/Options.td (original)
+++ lld/trunk/ELF/Options.td Tue Nov 22 16:54:03 2016
@@ -258,6 +258,7 @@ def alias_script_T: JoinedOrSeparate<["-
 def alias_shared_Bshareable: F<"Bshareable">, Alias<shared>;
 def alias_soname_h: JoinedOrSeparate<["-"], "h">, Alias<soname>;
 def alias_soname_soname: S<"soname">, Alias<soname>;
+def alias_script: J<"script=">, Alias<script>;
 def alias_strip_all: Flag<["-"], "s">, Alias<strip_all>;
 def alias_strip_debug_S: Flag<["-"], "S">, Alias<strip_debug>;
 def alias_Tbss: J<"Tbss=">, Alias<Tbss>;

Modified: lld/trunk/test/ELF/reproduce.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/reproduce.s?rev=287711&r1=287710&r2=287711&view=diff
==============================================================================
--- lld/trunk/test/ELF/reproduce.s (original)
+++ lld/trunk/test/ELF/reproduce.s Tue Nov 22 16:54:03 2016
@@ -35,7 +35,7 @@
 # RUN: echo > file2
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o 'foo bar'
 # RUN: ld.lld --reproduce repro2 'foo bar' -L"foo bar" -Lfile -Tfile2 \
-# RUN:   --dynamic-list dyn -rpath file --script file --version-script ver \
+# RUN:   --dynamic-list dyn -rpath file --script=file --version-script ver \
 # RUN:   --dynamic-linker "some unusual/path" -soname 'foo bar' -soname='foo bar'
 # RUN: cpio -id < repro2.cpio
 # RUN: FileCheck %s --check-prefix=RSP2 < repro2/response.txt




More information about the llvm-commits mailing list