[PATCH] D58759: [RISCV][MC] Fixed error: could not find corresponding %pcrel_hi

Ana Pazos via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 4 13:43:11 PST 2019


apazos added a comment.

Hi Eli,

The pair of instructions constraint is that the instruction (or instructions) with the LO12 relocation label points to a valid HI20 relocation which  in turn points to the symbol:

At label: R_RISCV_PCREL_HI20 relocation entry ⟶ symbol
R_RISCV_PCREL_LO12_I relocation entry ⟶ label

See https://github.com/riscv/riscv-elf-psabi-doc/blob/master/riscv-elf.md#relocations

Let us know if you have a suggestion on how to do this matching some other way.


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

https://reviews.llvm.org/D58759





More information about the llvm-commits mailing list