[llvm-bugs] [Bug 38782] New: lld-link /lib allows creating mixed-bitness lib files; lib.exe doesn't allow that
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Aug 30 11:07:11 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38782
Bug ID: 38782
Summary: lld-link /lib allows creating mixed-bitness lib files;
lib.exe doesn't allow that
Product: lld
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: COFF
Assignee: unassignedbugs at nondot.org
Reporter: nicolasweber at gmx.de
CC: llvm-bugs at lists.llvm.org
C:\src\chrome\src>type f1.c
void f1() {}
C:\src\chrome\src>type f2.c
void f2() {}
C:\src\chrome\src>"third_party\llvm-build\Release+Asserts\bin\clang-cl.exe"
-m64 -c f1.c
C:\src\chrome\src>"third_party\llvm-build\Release+Asserts\bin\clang-cl.exe"
-m32 -c f2.c
C:\src\chrome\src>lib /out:foo.lib f1.obj f2.obj
Microsoft (R) Library Manager Version 14.14.26428.1
Copyright (C) Microsoft Corporation. All rights reserved.
f2.obj : fatal error LNK1112: module machine type 'x86' conflicts with target
machine type 'x64'
C:\src\chrome\src>"third_party\llvm-build\Release+Asserts\bin\lld-link.exe"
/lib /out:foo.lib f2.obj f1.obj
Not allowing this seems like a good choice.
--
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/20180830/34032d86/attachment.html>
More information about the llvm-bugs
mailing list