Really define --export-dynamic-symbol= as an alias to --export-dynamic-symbol.

Thanks to Sean for pointing it out.

llvm-svn: 270660
This commit is contained in:
Rui Ueyama 2016-05-25 04:29:55 +00:00
parent 02fcf11a9c
commit c789b631f3
2 changed files with 4 additions and 1 deletions

View File

@ -190,7 +190,8 @@ def alias_discard_locals_X: Flag<["-"], "X">, Alias<discard_locals>;
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>;

View File

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