[all-commits] [llvm/llvm-project] 917f46: [RISCV] Fix evalutePCRelLo for symbols at the end ...

James Clarke via All-commits all-commits at lists.llvm.org
Tue Jan 7 20:32:22 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 917f46db04b8ddf52a43183f00d3b74e78740f9f
      https://github.com/llvm/llvm-project/commit/917f46db04b8ddf52a43183f00d3b74e78740f9f
  Author: James Clarke <jrtc27 at jrtc27.com>
  Date:   2020-01-08 (Wed, 08 Jan 2020)

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

  Log Message:
  -----------
  [RISCV] Fix evalutePCRelLo for symbols at the end of a fragment

Summary:
This is analogous to 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.

Reviewers: asb, efriedma, lenary

Reviewed By: efriedma

Subscribers: hiraditya, rbar, johnrusso, simoncook, sabuasal, niosHD, kito-cheng, shiva0217, MaskRay, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, PkmX, jocewei, psnobl, benna, Jim, s.egerton, pzheng, sameer.abuasal, apazos, luismarques, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D71978




More information about the All-commits mailing list