[lld] [ELF] -r: Synthesize R_RISCV_ALIGN at input section start (PR #151639)
Daniel Thornburgh via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 5 10:51:53 PDT 2025
================
@@ -1543,6 +1543,8 @@ template <class ELFT> void Writer<ELFT>::finalizeAddressDependentContent() {
uint32_t pass = 0, assignPasses = 0;
for (;;) {
+ if (ctx.arg.relocatable)
----------------
mysterymath wrote:
Ah, thanks for the explanation. Makes sense to me.
In that case; I think we can remove the check for `ctx.arg.relocatable` in RISC-V's `relaxOnce`. We can now take it as part of the contract for relaxation and thunk creation that they do not occur in relocatable links.
https://github.com/llvm/llvm-project/pull/151639
More information about the llvm-commits
mailing list