[PATCH] D157365: [lld][PPC64] Fix location of the least significant byte when fixing up R_PPC64_ADDR14 for little-endian target
Nemanja Ivanovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 8 06:16:28 PDT 2023
nemanjai added inline comments.
================
Comment at: lld/ELF/Arch/PPC64.cpp:1224
+ uint8_t aalk = loc[config->isLE ? 0 : 3];
+ write16(config->isLE ? loc : loc + 2, (aalk & 3) | (val & 0xfffc));
break;
----------------
Is this backwards? Shouldn't it be offset by 2 bytes for LE?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157365/new/
https://reviews.llvm.org/D157365
More information about the llvm-commits
mailing list