[lld] [lld] Fix ILP32 ABI checks for bitcode files. (PR #116537)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 19 22:48:09 PST 2024
================
@@ -1637,9 +1637,10 @@ template <class ELFT> void SharedFile::parse() {
}
static ELFKind getBitcodeELFKind(const Triple &t) {
- if (t.isLittleEndian())
- return t.isArch64Bit() ? ELF64LEKind : ELF32LEKind;
- return t.isArch64Bit() ? ELF64BEKind : ELF32BEKind;
+ if (t.isArch64Bit() && !t.isABIN32() && !t.isX32() &&
----------------
MaskRay wrote:
The tests are in lld/test/ELF. Many LTO tests are in lld/test/ELF/lto. Run them with `ninja check-lld-elf`.
`lld/test/ELF/lto/aarch64.ll` may be useful.
https://github.com/llvm/llvm-project/pull/116537
More information about the llvm-commits
mailing list