[clang] [llvm] [RISCV] Always emit relocations for resolved symbols and relax (PR #73793)

Jessica Clarke via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 30 13:05:43 PST 2023


jrtc27 wrote:

As far as I can tell this is pointless. If you want relaxation you need R_RISCV_RELAX and R_RISC_ALIGN relocations to be emitted. If you don't want relaxation you don't need these. Therefore it seems like all this does is emit a whole bunch of useless relocations for the case when you're not enabling relaxation at compile time and thus cannot possibly enable it at link time?

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


More information about the cfe-commits mailing list