[lld] [ELF] Error if a section address is smaller than image base (PR #140187)
Daniel Thornburgh via llvm-commits
llvm-commits at lists.llvm.org
Mon May 19 12:18:14 PDT 2025
================
@@ -1615,17 +1615,31 @@ template <class ELFT> void Writer<ELFT>::finalizeAddressDependentContent() {
sec->addr = 0;
// If addrExpr is set, the address may not be a multiple of the alignment.
----------------
mysterymath wrote:
I think these comments would be clearer split up and moved adjacent to the checks within the loop. The loop now doesn't have an easy-to-describe purpose itself; it now exists just to service the checks within it.
https://github.com/llvm/llvm-project/pull/140187
More information about the llvm-commits
mailing list