[lld] r270660 - Really define --export-dynamic-symbol= as an alias to --export-dynamic-symbol.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue May 24 21:29:55 PDT 2016


Author: ruiu
Date: Tue May 24 23:29:55 2016
New Revision: 270660

URL: http://llvm.org/viewvc/llvm-project?rev=270660&view=rev
Log:
Really define --export-dynamic-symbol= as an alias to --export-dynamic-symbol.

Thanks to Sean for pointing it out.

Modified:
    lld/trunk/ELF/Options.td
    lld/trunk/test/ELF/dynamic-list.s

Modified: lld/trunk/ELF/Options.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Options.td?rev=270660&r1=270659&r2=270660&view=diff
==============================================================================
--- lld/trunk/ELF/Options.td (original)
+++ lld/trunk/ELF/Options.td Tue May 24 23:29:55 2016
@@ -190,7 +190,8 @@ def alias_discard_locals_X: Flag<["-"],
 def alias_dynamic_list: Joined<["--", "-"], "dynamic-list=">, Alias<dynamic_list>;
 def alias_entry_e : JoinedOrSeparate<["-"], "e">, Alias<entry>;
 def alias_export_dynamic_E: Flag<["-"], "E">, Alias<export_dynamic>;
-def alias_export_dynamic_symbol : Joined<["--", "-"], "export-dynamic-symbol=">;
+def alias_export_dynamic_symbol : Joined<["--", "-"], "export-dynamic-symbol=">,
+    Alias<export_dynamic_symbol>;
 def alias_fini_fini : Joined<["-"], "fini=">, Alias<fini>;
 def alias_hash_style_hash_style : Joined<["--", "-"], "hash-style=">, Alias<hash_style>;
 def alias_init_init : Joined<["-"], "init=">, Alias<init>;

Modified: lld/trunk/test/ELF/dynamic-list.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/dynamic-list.s?rev=270660&r1=270659&r2=270660&view=diff
==============================================================================
--- lld/trunk/test/ELF/dynamic-list.s (original)
+++ lld/trunk/test/ELF/dynamic-list.s Tue May 24 23:29:55 2016
@@ -24,6 +24,8 @@
 ## And now using --export-dynamic-symbol.
 # RUN: ld.lld --export-dynamic-symbol foo1 %t %t2.so -o %t.exe
 # RUN: llvm-readobj -dyn-symbols %t.exe | FileCheck %s
+# RUN: ld.lld --export-dynamic-symbol=foo1 %t %t2.so -o %t.exe
+# RUN: llvm-readobj -dyn-symbols %t.exe | FileCheck %s
 
 # CHECK:      DynamicSymbols [
 # CHECK-NEXT:   Symbol {




More information about the llvm-commits mailing list