[llvm-bugs] [Bug 45584] New: Support --allow-multiple-definitions in ld.lld.exe
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Apr 17 07:32:44 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=45584
Bug ID: 45584
Summary: Support --allow-multiple-definitions in ld.lld.exe
Product: lld
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: COFF
Assignee: unassignedbugs at nondot.org
Reporter: Mikhail.Kviatkovskii at pm.me
CC: llvm-bugs at lists.llvm.org
MinGW version of LLD, ld.lld.exe, does not support
"--allow-multiple-definitions" options:
lld: error: unknown argument: --allow-multiple-definitions
collect2.exe: error: ld returned 1 exit status
As far as I understand, ld.lld.exe is a wrapper over a lld-link.exe, which has
the option "/force:multiple" ("Allow multiply defined symbols when creating
executables"), which sounds similar to me.
So maybe it is possbile to implement "--allow-multiple-definitions" options
with passing "/force:multiple" to lld-link.exe?
I also wonder if there is a workaround, that allows to pass arguments from
ld.lld.exe wrapper to lld-link.exe directly, like "-Wl" allows to pass
arguments from compiler to linker?
Thank you in advance!
--
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/20200417/04503b97/attachment.html>
More information about the llvm-bugs
mailing list