Add some new risc-v ELF relocations.

Also add the link to the canonical source.

Test: treehugger
Change-Id: I06c5d1ded5e1b372630c6963c81947450946c29a
This commit is contained in:
Elliott Hughes 2023-08-18 17:51:53 +00:00
parent 20ad9129e7
commit f517b68c82

View file

@ -1248,6 +1248,7 @@
/*
* RISC-V relocation types.
* https://github.com/riscv-non-isa/riscv-elf-psabi-doc/blob/master/riscv-elf.adoc#relocations
*/
/* Relocation types used by the dynamic linker. */
@ -1304,6 +1305,9 @@
#define R_RISCV_SET32 56
#define R_RISCV_32_PCREL 57
#define R_RISCV_IRELATIVE 58
#define R_RISCV_PLT32 59
#define R_RISCV_SET_ULEB128 60
#define R_RISCV_SUB_ULEB128 61
#define R_SPARC_NONE 0
#define R_SPARC_8 1