1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 12:33:33 +02:00
llvm-mirror/include/llvm/Support/ELFRelocs/Lanai.def
Jacques Pienaar ea54ef2b77 [lanai] Add ELF enum value and relocations.
Add ELF enum value and relocations for Lanai backed.

General Lanai backend discussion on llvm-dev thread "[RFC] Lanai backend" (http://lists.llvm.org/pipermail/llvm-dev/2016-February/095118.html).

Differential Revision: http://reviews.llvm.org/D17008

llvm-svn: 262394
2016-03-01 21:21:42 +00:00

20 lines
542 B
Modula-2

#ifndef ELF_RELOC
#error "ELF_RELOC must be defined"
#endif
// No relocation
ELF_RELOC(R_LANAI_NONE, 0)
// 21-bit symbol relocation
ELF_RELOC(R_LANAI_21, 1)
// 21-bit symbol relocation with last two bits masked to 0
ELF_RELOC(R_LANAI_21_F, 2)
// 25-bit branch targets
ELF_RELOC(R_LANAI_25, 3)
// General 32-bit relocation
ELF_RELOC(R_LANAI_32, 4)
// Upper 16-bits of a symbolic relocation
ELF_RELOC(R_LANAI_HI16, 5)
// Lower 16-bits of a symbolic relocation
ELF_RELOC(R_LANAI_LO16, 6)