[llvm-branch-commits] [llvm] [BOLT] Skip out-of-range pending relocations (PR #116964)
Paschalis Mpeis via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Mar 6 04:32:50 PST 2025
paschalis-mpeis wrote:
Hey Maksim,
Extending Relocations is even better. Thanks for the suggestion and the review.
Before proceeding, and regarding the size overheads, I want to highlight an inconsistency with LLVM’s ObjectFile, where the type is 64 bits ([see here](https://github.com/llvm/llvm-project/blob/16cd5cdf4d6387e34d2bb723bc26c331c8d89d75/llvm/include/llvm/Object/ObjectFile.h#L628)).
We only have 3 inlined sites of this in `RewriteInstance` (eg one is [here](https://github.com/llvm/llvm-project/blob/3c357a49d61e4c81a1ac016502ee504521bc8dda/bolt/lib/Rewrite/RewriteInstance.cpp#L2408)). If you agree, I'll proceed with an NFCI change, adding assertion overflow checks at these sites.
https://github.com/llvm/llvm-project/pull/116964
More information about the llvm-branch-commits
mailing list