[PATCH] D71978: [RISCV] Fix evalutePCRelLo for symbols at the end of a fragment

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 7 13:46:57 PST 2020


efriedma added a comment.

I think ultimately, the problem here is that the relocation is marked FKF_IsPCRel.  That has a specific meaning that doesn't apply here: the ultimate value encoded into the addi is based on the distance between two symbols: the symbol in the pcrel_lo, and the symbol in the corresponding pcrel_hi.  The address of the addi itself isn't relevant.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71978/new/

https://reviews.llvm.org/D71978





More information about the llvm-commits mailing list