[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 12:16:23 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:

Not calling `createThunks` seems like it might be a pretty big behavior change; AFAICT there aren't hooks to disable it if `relocatable`. This is definitely a gap in my knowledge: is it intended that thunks be created as a result of relocatable linking?

https://github.com/llvm/llvm-project/pull/151639


More information about the llvm-commits mailing list