diff --git a/lld/MinGW/Options.td b/lld/MinGW/Options.td --- a/lld/MinGW/Options.td +++ b/lld/MinGW/Options.td @@ -113,6 +113,11 @@ HelpText<"Pass to the COFF linker">; // Alias +def alias_Bdynamic_call_shared: Flag<["-"], "call_shared">, Alias; +def alias_Bdynamic_dy: Flag<["-"], "dy">, Alias; +def alias_Bstatic_dn: Flag<["-"], "dn">, Alias; +def alias_Bstatic_non_shared: Flag<["-"], "non_shared">, Alias; +def alias_Bstatic_static: Flag<["-"], "static">, Alias; def alias_entry_e: JoinedOrSeparate<["-"], "e">, Alias; def alias_strip_s: Flag<["-"], "s">, Alias; def alias_strip_S: Flag<["-"], "S">, Alias; diff --git a/lld/test/MinGW/lib.test b/lld/test/MinGW/lib.test --- a/lld/test/MinGW/lib.test +++ b/lld/test/MinGW/lib.test @@ -15,6 +15,9 @@ LIB-LITERAL: barefilename RUN: not ld.lld -### -m i386pep -Bstatic -lfoo -L%t/lib 2>&1 | FileCheck -check-prefix=LIB3 %s +RUN: not ld.lld -### -m i386pep -dn -lfoo -L%t/lib 2>&1 | FileCheck -check-prefix=LIB3 %s +RUN: not ld.lld -### -m i386pep -static -lfoo -L%t/lib 2>&1 | FileCheck -check-prefix=LIB3 %s +RUN: not ld.lld -### -m i386pep -non_shared -lfoo -L%t/lib 2>&1 | FileCheck -check-prefix=LIB3 %s LIB3: unable to find library -lfoo RUN: echo > %t/lib/libfoo.a @@ -24,6 +27,8 @@ RUN: echo > %t/lib/libbar.dll.a RUN: echo > %t/lib/libbar.a RUN: ld.lld -### -m i386pep -Bstatic -lfoo -Bdynamic -lbar -L%t/lib | FileCheck -check-prefix=LIB5 %s +RUN: ld.lld -### -m i386pep -Bstatic -lfoo -dy -lbar -L%t/lib | FileCheck -check-prefix=LIB5 %s +RUN: ld.lld -### -m i386pep -Bstatic -lfoo -call_shared -lbar -L%t/lib | FileCheck -check-prefix=LIB5 %s LIB5: libfoo.a LIB5-SAME: libbar.dll.a