[PATCH] D62913: llvm-lib: Disallow mixing object files with different machine types
Nico Weber via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 5 09:06:37 PDT 2019
thakis created this revision.
thakis added a reviewer: pcc.
Herald added subscribers: hiraditya, javed.absar, mgorny.
Herald added a project: LLVM.
lib.exe doesn't allow creating .lib files with object files that have
differing machine types. Update llvm-lib to match.
The motivation is to make it possible to infer the machine type of a
.lib file in lld, so that it can warn when e.g. a 32-bit .lib file is
passed to a 64-bit link (PR38965).
Fixes PR38782.
https://reviews.llvm.org/D62913
Files:
llvm/lib/ToolDrivers/llvm-lib/CMakeLists.txt
llvm/lib/ToolDrivers/llvm-lib/LLVMBuild.txt
llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp
llvm/test/tools/llvm-lib/Inputs/arm64.ll
llvm/test/tools/llvm-lib/Inputs/i386.ll
llvm/test/tools/llvm-lib/Inputs/x86_64.ll
llvm/test/tools/llvm-lib/machine-mismatch.test
llvm/utils/gn/secondary/llvm/lib/ToolDrivers/llvm-lib/BUILD.gn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62913.203174.patch
Type: text/x-patch
Size: 10529 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190605/c0bdebd6/attachment.bin>
More information about the llvm-commits
mailing list