[llvm-bugs] [Bug 48542] New: ld.lld on Windows does not accept -Bstatic aliases

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 17 08:19:34 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=48542

            Bug ID: 48542
           Summary: ld.lld on Windows does not accept -Bstatic aliases
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: devl at adrian-ebeling.de
                CC: llvm-bugs at lists.llvm.org, smithp352 at googlemail.com

According to ld.lld --help, there are three aliases for --Bstatic:

$ ld.lld --help | grep Bstatic
  --Bstatic               Do not link against shared libraries
  --dn                    Alias for --Bstatic
  --non_shared            Alias for --Bstatic
  --static                Alias for --Bstatic

However, only --Bstatic works (version with one dash is also accepted):

$ ld.lld -m i386pep --dn main.o -o main.exe
lld: error: unknown argument: --dn

$ ld.lld -m i386pep --non_shared main.o -o main.o2
lld: error: unknown argument: --non_shared

$ ld.lld -m i386pep --static main.o -o main.o2
lld: error: unknown argument: --static


Current version on my PC is "LLD 10.0.0 (compatible with GNU linkers)", but I
also tried with 11.0.0.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201217/ce5a0143/attachment.html>


More information about the llvm-bugs mailing list