[PATCH] D23558: [RISCV 2/10] Add RISC-V ELF defines

James Y Knight via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 17 12:12:19 PDT 2016


jyknight accepted this revision.
jyknight added a comment.

In https://reviews.llvm.org/D23558#517268, @emaste wrote:

> Confirmed EM_RISCV and relocations against https://sourceforge.net/p/elftoolchain/code/HEAD/tree/trunk/common/elfdefinitions.h (except that R_RISCV_RVC_LUI, ELF_RELOC(R_RISCV_GPREL_I, ELF_RELOC(R_RISCV_GPREL_S not yet added there).


I guess the relocation types aren't actually documented anywhere? The elftoolchain source code is the canonical location?

At least, I've not seen any RISCV ELF psABI supplement. If there isn't any such thing, someone really ought to start writing one ASAP.


https://reviews.llvm.org/D23558





More information about the llvm-commits mailing list