[llvm] [RISCV] Don't outline lo operand (PR #80920)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 6 23:46:45 PST 2024


topperc wrote:

> > If lo and hi operand put in separate section, it has the same issue like pcrel-hi and pcrel-lo.
> 
> I don't get it. IIUC, lo/hi will be resolved to absolute address of symbol, the position of lo/hi doesn't matter.

I agree this isn't an issue. The lo/hi relocations both point to the same symbol. pcrel was an issue because the pcrel-lo relocation contains a symbol that points to the address of an auipc instruction and the pcrel-hi relocation points to the symbol we want the address of. So there are 2 symbols involved.

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


More information about the llvm-commits mailing list