Lines Matching full:elf
1 //===-- AArch64ELFObjectWriter.cpp - AArch64 ELF Writer -------------------===//
10 // This file handles ELF-specific object emission, converting LLVM's internal
42 : MCELFObjectTargetWriter(/*Is64Bit*/ true, OSABI, ELF::EM_AARCH64, in AArch64ELFObjectWriter()
68 return ELF::R_AARCH64_NONE; in getRelocType()
70 return ELF::R_AARCH64_PREL16; in getRelocType()
72 return ELF::R_AARCH64_PREL32; in getRelocType()
74 return ELF::R_AARCH64_PREL64; in getRelocType()
77 return ELF::R_AARCH64_ADR_PREL_LO21; in getRelocType()
80 return ELF::R_AARCH64_ADR_PREL_PG_HI21; in getRelocType()
82 return ELF::R_AARCH64_ADR_GOT_PAGE; in getRelocType()
84 return ELF::R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21; in getRelocType()
86 return ELF::R_AARCH64_TLSDESC_ADR_PAGE21; in getRelocType()
89 return ELF::R_AARCH64_NONE; in getRelocType()
91 return ELF::R_AARCH64_JUMP26; in getRelocType()
93 return ELF::R_AARCH64_CALL26; in getRelocType()
96 return ELF::R_AARCH64_TLSIE_LD_GOTTPREL_PREL19; in getRelocType()
97 return ELF::R_AARCH64_LD_PREL_LO19; in getRelocType()
99 return ELF::R_AARCH64_TSTBR14; in getRelocType()
101 return ELF::R_AARCH64_CONDBR19; in getRelocType()
104 return ELF::R_AARCH64_NONE; in getRelocType()
110 return ELF::R_AARCH64_NONE; in getRelocType()
112 return ELF::R_AARCH64_ABS16; in getRelocType()
114 return ELF::R_AARCH64_ABS32; in getRelocType()
116 return ELF::R_AARCH64_ABS64; in getRelocType()
119 return ELF::R_AARCH64_TLSLD_ADD_DTPREL_HI12; in getRelocType()
121 return ELF::R_AARCH64_TLSLE_ADD_TPREL_HI12; in getRelocType()
123 return ELF::R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC; in getRelocType()
125 return ELF::R_AARCH64_TLSLD_ADD_DTPREL_LO12; in getRelocType()
127 return ELF::R_AARCH64_TLSLE_ADD_TPREL_LO12_NC; in getRelocType()
129 return ELF::R_AARCH64_TLSLE_ADD_TPREL_LO12; in getRelocType()
131 return ELF::R_AARCH64_TLSDESC_ADD_LO12_NC; in getRelocType()
133 return ELF::R_AARCH64_ADD_ABS_LO12_NC; in getRelocType()
137 return ELF::R_AARCH64_NONE; in getRelocType()
140 return ELF::R_AARCH64_LDST8_ABS_LO12_NC; in getRelocType()
142 return ELF::R_AARCH64_TLSLD_LDST8_DTPREL_LO12; in getRelocType()
144 return ELF::R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC; in getRelocType()
146 return ELF::R_AARCH64_TLSLE_LDST8_TPREL_LO12; in getRelocType()
148 return ELF::R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC; in getRelocType()
152 return ELF::R_AARCH64_NONE; in getRelocType()
155 return ELF::R_AARCH64_LDST16_ABS_LO12_NC; in getRelocType()
157 return ELF::R_AARCH64_TLSLD_LDST16_DTPREL_LO12; in getRelocType()
159 return ELF::R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC; in getRelocType()
161 return ELF::R_AARCH64_TLSLE_LDST16_TPREL_LO12; in getRelocType()
163 return ELF::R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC; in getRelocType()
167 return ELF::R_AARCH64_NONE; in getRelocType()
170 return ELF::R_AARCH64_LDST32_ABS_LO12_NC; in getRelocType()
172 return ELF::R_AARCH64_TLSLD_LDST32_DTPREL_LO12; in getRelocType()
174 return ELF::R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC; in getRelocType()
176 return ELF::R_AARCH64_TLSLE_LDST32_TPREL_LO12; in getRelocType()
178 return ELF::R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC; in getRelocType()
182 return ELF::R_AARCH64_NONE; in getRelocType()
185 return ELF::R_AARCH64_LDST64_ABS_LO12_NC; in getRelocType()
187 return ELF::R_AARCH64_LD64_GOT_LO12_NC; in getRelocType()
189 return ELF::R_AARCH64_TLSLD_LDST64_DTPREL_LO12; in getRelocType()
191 return ELF::R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC; in getRelocType()
193 return ELF::R_AARCH64_TLSLE_LDST64_TPREL_LO12; in getRelocType()
195 return ELF::R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC; in getRelocType()
197 return ELF::R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC; in getRelocType()
199 return ELF::R_AARCH64_TLSDESC_LD64_LO12_NC; in getRelocType()
203 return ELF::R_AARCH64_NONE; in getRelocType()
206 return ELF::R_AARCH64_LDST128_ABS_LO12_NC; in getRelocType()
210 return ELF::R_AARCH64_NONE; in getRelocType()
213 return ELF::R_AARCH64_MOVW_UABS_G3; in getRelocType()
215 return ELF::R_AARCH64_MOVW_UABS_G2; in getRelocType()
217 return ELF::R_AARCH64_MOVW_SABS_G2; in getRelocType()
219 return ELF::R_AARCH64_MOVW_UABS_G2_NC; in getRelocType()
221 return ELF::R_AARCH64_MOVW_UABS_G1; in getRelocType()
223 return ELF::R_AARCH64_MOVW_SABS_G1; in getRelocType()
225 return ELF::R_AARCH64_MOVW_UABS_G1_NC; in getRelocType()
227 return ELF::R_AARCH64_MOVW_UABS_G0; in getRelocType()
229 return ELF::R_AARCH64_MOVW_SABS_G0; in getRelocType()
231 return ELF::R_AARCH64_MOVW_UABS_G0_NC; in getRelocType()
233 return ELF::R_AARCH64_TLSLD_MOVW_DTPREL_G2; in getRelocType()
235 return ELF::R_AARCH64_TLSLD_MOVW_DTPREL_G1; in getRelocType()
237 return ELF::R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC; in getRelocType()
239 return ELF::R_AARCH64_TLSLD_MOVW_DTPREL_G0; in getRelocType()
241 return ELF::R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC; in getRelocType()
243 return ELF::R_AARCH64_TLSLE_MOVW_TPREL_G2; in getRelocType()
245 return ELF::R_AARCH64_TLSLE_MOVW_TPREL_G1; in getRelocType()
247 return ELF::R_AARCH64_TLSLE_MOVW_TPREL_G1_NC; in getRelocType()
249 return ELF::R_AARCH64_TLSLE_MOVW_TPREL_G0; in getRelocType()
251 return ELF::R_AARCH64_TLSLE_MOVW_TPREL_G0_NC; in getRelocType()
253 return ELF::R_AARCH64_TLSIE_MOVW_GOTTPREL_G1; in getRelocType()
255 return ELF::R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC; in getRelocType()
258 return ELF::R_AARCH64_NONE; in getRelocType()
260 return ELF::R_AARCH64_TLSDESC_CALL; in getRelocType()
262 Ctx.reportError(Fixup.getLoc(), "Unknown ELF relocation type"); in getRelocType()
263 return ELF::R_AARCH64_NONE; in getRelocType()