[all-commits] [llvm/llvm-project] 292dc2: [LLD][COFF] Align EC code ranges to page boundarie...
Jacek Caban via All-commits
all-commits at lists.llvm.org
Mon Dec 1 04:59:15 PST 2025
Branch: refs/heads/release/21.x
Home: https://github.com/llvm/llvm-project
Commit: 292dc2b86f66e39f4b85ec8b185fd8b60f5213ce
https://github.com/llvm/llvm-project/commit/292dc2b86f66e39f4b85ec8b185fd8b60f5213ce
Author: Jacek Caban <jacek at codeweavers.com>
Date: 2025-12-01 (Mon, 01 Dec 2025)
Changed paths:
M lld/COFF/Chunks.cpp
M lld/test/COFF/arm64ec-codemap.test
Log Message:
-----------
[LLD][COFF] Align EC code ranges to page boundaries (#168222)
We already ensure that code for different architectures is always placed
in different pages in `assignAddresses`. We represent those ranges using
their first and last chunks. However, the RVAs of those chunks may not
be page-aligned, for example, due to extra padding for entry-thunk
offsets. Align the chunk RVAs to the page boundary so that the emitted
ranges correctly include the entire region.
This change affects an existing test that checks corner cases triggered
by merging a data section into a code section. We may now include such
data in the code range. This differs from MSVC’s behavior, but it should
not cause practical issues, and the new behavior is arguably more
correct.
Fixes #168119.
(cherry picked from commit af45b0202cdd443beedb02392f653d8cff5bd931)
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list