[lld] [LLD][COFF] Align EC code ranges to page boundaries (PR #168222)
Jacek Caban via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 17 03:43:49 PST 2025
================
@@ -946,7 +946,7 @@ void ECCodeMapChunk::writeTo(uint8_t *buf) const {
auto table = reinterpret_cast<chpe_range_entry *>(buf);
for (uint32_t i = 0; i < map.size(); i++) {
const ECCodeMapEntry &entry = map[i];
- uint32_t start = entry.first->getRVA();
+ uint32_t start = entry.first->getRVA() & ~0xfff;
----------------
cjacek wrote:
Yes, we already use `0xfff` in several places in LLD, mostly, but not exclusively, in `Chunks.cpp`.
https://github.com/llvm/llvm-project/pull/168222
More information about the llvm-commits
mailing list