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

James Clarke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 29 13:18:31 PST 2019


jrtc27 created this revision.
jrtc27 added reviewers: asb, efriedma, lenary.
Herald added subscribers: llvm-commits, luismarques, apazos, sameer.abuasal, pzheng, s.egerton, Jim, benna, psnobl, jocewei, PkmX, rkruppe, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, MaskRay, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya.
Herald added a project: LLVM.

This is analogous to D58943 <https://reviews.llvm.org/D58943>, which correctly finds the corresponding
fixup. However, when linker relaxations are disabled and we evaluate the
fixup, we need to also ensure we use an offset of 0 rather than the size
of the previous fragment.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D71978

Files:
  llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCExpr.cpp
  llvm/test/MC/RISCV/option-mix.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71978.235521.patch
Type: text/x-patch
Size: 5611 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191229/5871fc93/attachment-0001.bin>


More information about the llvm-commits mailing list