[PATCH] D89185: Fix broken bitstream linking with lld when e_machine > 255
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 11 14:19:59 PDT 2020
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa9cefc3deee0: [ELF] Fix broken bitstream linking with lld when e_machine > 255 (authored by chrivers, committed by MaskRay).
Changed prior to commit:
https://reviews.llvm.org/D89185?vs=297406&id=297488#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89185/new/
https://reviews.llvm.org/D89185
Files:
lld/ELF/InputFiles.cpp
Index: lld/ELF/InputFiles.cpp
===================================================================
--- lld/ELF/InputFiles.cpp
+++ lld/ELF/InputFiles.cpp
@@ -1517,7 +1517,7 @@
return t.isArch64Bit() ? ELF64BEKind : ELF32BEKind;
}
-static uint8_t getBitcodeMachineKind(StringRef path, const Triple &t) {
+static uint16_t getBitcodeMachineKind(StringRef path, const Triple &t) {
switch (t.getArch()) {
case Triple::aarch64:
return EM_AARCH64;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89185.297488.patch
Type: text/x-patch
Size: 456 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201011/bdc83887/attachment.bin>
More information about the llvm-commits
mailing list