https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117831
Xi Ruoyao <xry111 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |INVALID --- Comment #3 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- You are misreading the disassembly. We actually have 42: 00000097 auipc ra,0x0 42: R_RISCV_CALL_PLT __muldi3 42: R_RISCV_RELAX *ABS* 46: 000080e7 jalr ra # 42 <.L3+0xa> so it's calling a function, not a dead loop. It's just the actual address of the function has not be filled in (the linker should do it) yet.