[lld] r274524 - [ELF] Support --entry= option variant. Update tests while I'm there.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 4 14:50:50 PDT 2016
Author: davide
Date: Mon Jul 4 16:50:50 2016
New Revision: 274524
URL: http://llvm.org/viewvc/llvm-project?rev=274524&view=rev
Log:
[ELF] Support --entry= option variant. Update tests while I'm there.
Modified:
lld/trunk/ELF/Options.td
lld/trunk/test/ELF/entry.s
Modified: lld/trunk/ELF/Options.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Options.td?rev=274524&r1=274523&r2=274524&view=diff
==============================================================================
--- lld/trunk/ELF/Options.td (original)
+++ lld/trunk/ELF/Options.td Mon Jul 4 16:50:50 2016
@@ -186,6 +186,7 @@ def alias_discard_all_x: Flag<["-"], "x"
def alias_discard_locals_X: Flag<["-"], "X">, Alias<discard_locals>;
def alias_dynamic_list: J<"dynamic-list=">, Alias<dynamic_list>;
def alias_entry_e: JoinedOrSeparate<["-"], "e">, Alias<entry>;
+def alias_entry_entry: J<"entry=">, Alias<entry>;
def alias_export_dynamic_E: Flag<["-"], "E">, Alias<export_dynamic>;
def alias_export_dynamic_symbol: J<"export-dynamic-symbol=">,
Alias<export_dynamic_symbol>;
Modified: lld/trunk/test/ELF/entry.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/entry.s?rev=274524&r1=274523&r2=274524&view=diff
==============================================================================
--- lld/trunk/test/ELF/entry.s (original)
+++ lld/trunk/test/ELF/entry.s Mon Jul 4 16:50:50 2016
@@ -4,9 +4,9 @@
# RUN: llvm-readobj -file-headers %t2 | FileCheck -check-prefix=SYM %s
# RUN: ld.lld %t1 -shared -o %t2 -e entry
# RUN: llvm-readobj -file-headers %t2 | FileCheck -check-prefix=DSO %s
-# RUN: ld.lld %t1 -o %t2 -e 4096
+# RUN: ld.lld %t1 -o %t2 --entry=4096
# RUN: llvm-readobj -file-headers %t2 | FileCheck -check-prefix=DEC %s
-# RUN: ld.lld %t1 -o %t2 -e 0xcafe
+# RUN: ld.lld %t1 -o %t2 --entry 0xcafe
# RUN: llvm-readobj -file-headers %t2 | FileCheck -check-prefix=HEX %s
# RUN: ld.lld %t1 -o %t2 -e 0777
# RUN: llvm-readobj -file-headers %t2 | FileCheck -check-prefix=OCT %s
More information about the llvm-commits
mailing list