1
2#ifndef ELF_RELOC
3#error "ELF_RELOC must be defined"
4#endif
5
6// No relocation
7ELF_RELOC(R_LANAI_NONE, 0)
8// 21-bit symbol relocation
9ELF_RELOC(R_LANAI_21, 1)
10// 21-bit symbol relocation with last two bits masked to 0
11ELF_RELOC(R_LANAI_21_F, 2)
12// 25-bit branch targets
13ELF_RELOC(R_LANAI_25, 3)
14// General 32-bit relocation
15ELF_RELOC(R_LANAI_32, 4)
16// Upper 16-bits of a symbolic relocation
17ELF_RELOC(R_LANAI_HI16, 5)
18// Lower 16-bits of a symbolic relocation
19ELF_RELOC(R_LANAI_LO16, 6)
20

source code of llvm/include/llvm/BinaryFormat/ELFRelocs/Lanai.def