[lld] [ELF] -r: Synthesize R_RISCV_ALIGN at input section start (PR #151639)
Daniel Thornburgh via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 4 14:38:28 PDT 2025
================
@@ -959,6 +970,116 @@ bool RISCV::relaxOnce(int pass) const {
return changed;
}
+// If the section alignment is >= 4, advance `dot` to insert NOPs and synthesize
+// an ALIGN relocation. Otherwise, return false to use default handling.
+template <class ELFT, class RelTy>
+bool RISCV::synthesizeAlignOne(uint64_t &dot, InputSection *sec,
----------------
mysterymath wrote:
What does `One` mean in this context?
https://github.com/llvm/llvm-project/pull/151639
More information about the llvm-commits
mailing list