Lines Matching refs:ELF

31   case ELF::R_X86_64_8:  in isSupportedX86()
32 case ELF::R_X86_64_16: in isSupportedX86()
33 case ELF::R_X86_64_32: in isSupportedX86()
34 case ELF::R_X86_64_32S: in isSupportedX86()
35 case ELF::R_X86_64_64: in isSupportedX86()
36 case ELF::R_X86_64_PC8: in isSupportedX86()
37 case ELF::R_X86_64_PC32: in isSupportedX86()
38 case ELF::R_X86_64_PC64: in isSupportedX86()
39 case ELF::R_X86_64_PLT32: in isSupportedX86()
40 case ELF::R_X86_64_GOTPCREL: in isSupportedX86()
41 case ELF::R_X86_64_GOTTPOFF: in isSupportedX86()
42 case ELF::R_X86_64_TPOFF32: in isSupportedX86()
43 case ELF::R_X86_64_GOTPCRELX: in isSupportedX86()
44 case ELF::R_X86_64_REX_GOTPCRELX: in isSupportedX86()
53 case ELF::R_AARCH64_CALL26: in isSupportedAArch64()
54 case ELF::R_AARCH64_JUMP26: in isSupportedAArch64()
55 case ELF::R_AARCH64_TSTBR14: in isSupportedAArch64()
56 case ELF::R_AARCH64_CONDBR19: in isSupportedAArch64()
57 case ELF::R_AARCH64_ADR_PREL_LO21: in isSupportedAArch64()
58 case ELF::R_AARCH64_ADR_PREL_PG_HI21: in isSupportedAArch64()
59 case ELF::R_AARCH64_ADR_PREL_PG_HI21_NC: in isSupportedAArch64()
60 case ELF::R_AARCH64_LDST64_ABS_LO12_NC: in isSupportedAArch64()
61 case ELF::R_AARCH64_ADD_ABS_LO12_NC: in isSupportedAArch64()
62 case ELF::R_AARCH64_LDST128_ABS_LO12_NC: in isSupportedAArch64()
63 case ELF::R_AARCH64_LDST32_ABS_LO12_NC: in isSupportedAArch64()
64 case ELF::R_AARCH64_LDST16_ABS_LO12_NC: in isSupportedAArch64()
65 case ELF::R_AARCH64_LDST8_ABS_LO12_NC: in isSupportedAArch64()
66 case ELF::R_AARCH64_ADR_GOT_PAGE: in isSupportedAArch64()
67 case ELF::R_AARCH64_TLSDESC_ADR_PREL21: in isSupportedAArch64()
68 case ELF::R_AARCH64_TLSDESC_ADR_PAGE21: in isSupportedAArch64()
69 case ELF::R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC: in isSupportedAArch64()
70 case ELF::R_AARCH64_TLSLE_ADD_TPREL_HI12: in isSupportedAArch64()
71 case ELF::R_AARCH64_TLSLE_ADD_TPREL_LO12_NC: in isSupportedAArch64()
72 case ELF::R_AARCH64_LD64_GOT_LO12_NC: in isSupportedAArch64()
73 case ELF::R_AARCH64_TLSDESC_LD64_LO12: in isSupportedAArch64()
74 case ELF::R_AARCH64_TLSDESC_ADD_LO12: in isSupportedAArch64()
75 case ELF::R_AARCH64_TLSDESC_CALL: in isSupportedAArch64()
76 case ELF::R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21: in isSupportedAArch64()
77 case ELF::R_AARCH64_PREL16: in isSupportedAArch64()
78 case ELF::R_AARCH64_PREL32: in isSupportedAArch64()
79 case ELF::R_AARCH64_PREL64: in isSupportedAArch64()
80 case ELF::R_AARCH64_ABS16: in isSupportedAArch64()
81 case ELF::R_AARCH64_ABS32: in isSupportedAArch64()
82 case ELF::R_AARCH64_ABS64: in isSupportedAArch64()
83 case ELF::R_AARCH64_MOVW_UABS_G0: in isSupportedAArch64()
84 case ELF::R_AARCH64_MOVW_UABS_G0_NC: in isSupportedAArch64()
85 case ELF::R_AARCH64_MOVW_UABS_G1: in isSupportedAArch64()
86 case ELF::R_AARCH64_MOVW_UABS_G1_NC: in isSupportedAArch64()
87 case ELF::R_AARCH64_MOVW_UABS_G2: in isSupportedAArch64()
88 case ELF::R_AARCH64_MOVW_UABS_G2_NC: in isSupportedAArch64()
89 case ELF::R_AARCH64_MOVW_UABS_G3: in isSupportedAArch64()
97 errs() << object::getELFRelocationTypeName(ELF::EM_X86_64, Type) << '\n'; in getSizeForTypeX86()
99 case ELF::R_X86_64_8: in getSizeForTypeX86()
100 case ELF::R_X86_64_PC8: in getSizeForTypeX86()
102 case ELF::R_X86_64_16: in getSizeForTypeX86()
104 case ELF::R_X86_64_PLT32: in getSizeForTypeX86()
105 case ELF::R_X86_64_PC32: in getSizeForTypeX86()
106 case ELF::R_X86_64_32S: in getSizeForTypeX86()
107 case ELF::R_X86_64_32: in getSizeForTypeX86()
108 case ELF::R_X86_64_GOTPCREL: in getSizeForTypeX86()
109 case ELF::R_X86_64_GOTTPOFF: in getSizeForTypeX86()
110 case ELF::R_X86_64_TPOFF32: in getSizeForTypeX86()
111 case ELF::R_X86_64_GOTPCRELX: in getSizeForTypeX86()
112 case ELF::R_X86_64_REX_GOTPCRELX: in getSizeForTypeX86()
114 case ELF::R_X86_64_PC64: in getSizeForTypeX86()
115 case ELF::R_X86_64_64: in getSizeForTypeX86()
123 errs() << object::getELFRelocationTypeName(ELF::EM_AARCH64, Type) << '\n'; in getSizeForTypeAArch64()
125 case ELF::R_AARCH64_ABS16: in getSizeForTypeAArch64()
126 case ELF::R_AARCH64_PREL16: in getSizeForTypeAArch64()
128 case ELF::R_AARCH64_CALL26: in getSizeForTypeAArch64()
129 case ELF::R_AARCH64_JUMP26: in getSizeForTypeAArch64()
130 case ELF::R_AARCH64_TSTBR14: in getSizeForTypeAArch64()
131 case ELF::R_AARCH64_CONDBR19: in getSizeForTypeAArch64()
132 case ELF::R_AARCH64_ADR_PREL_LO21: in getSizeForTypeAArch64()
133 case ELF::R_AARCH64_ADR_PREL_PG_HI21: in getSizeForTypeAArch64()
134 case ELF::R_AARCH64_ADR_PREL_PG_HI21_NC: in getSizeForTypeAArch64()
135 case ELF::R_AARCH64_LDST64_ABS_LO12_NC: in getSizeForTypeAArch64()
136 case ELF::R_AARCH64_ADD_ABS_LO12_NC: in getSizeForTypeAArch64()
137 case ELF::R_AARCH64_LDST128_ABS_LO12_NC: in getSizeForTypeAArch64()
138 case ELF::R_AARCH64_LDST32_ABS_LO12_NC: in getSizeForTypeAArch64()
139 case ELF::R_AARCH64_LDST16_ABS_LO12_NC: in getSizeForTypeAArch64()
140 case ELF::R_AARCH64_LDST8_ABS_LO12_NC: in getSizeForTypeAArch64()
141 case ELF::R_AARCH64_ADR_GOT_PAGE: in getSizeForTypeAArch64()
142 case ELF::R_AARCH64_TLSDESC_ADR_PREL21: in getSizeForTypeAArch64()
143 case ELF::R_AARCH64_TLSDESC_ADR_PAGE21: in getSizeForTypeAArch64()
144 case ELF::R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC: in getSizeForTypeAArch64()
145 case ELF::R_AARCH64_TLSLE_ADD_TPREL_HI12: in getSizeForTypeAArch64()
146 case ELF::R_AARCH64_TLSLE_ADD_TPREL_LO12_NC: in getSizeForTypeAArch64()
147 case ELF::R_AARCH64_LD64_GOT_LO12_NC: in getSizeForTypeAArch64()
148 case ELF::R_AARCH64_TLSDESC_LD64_LO12: in getSizeForTypeAArch64()
149 case ELF::R_AARCH64_TLSDESC_ADD_LO12: in getSizeForTypeAArch64()
150 case ELF::R_AARCH64_TLSDESC_CALL: in getSizeForTypeAArch64()
151 case ELF::R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21: in getSizeForTypeAArch64()
152 case ELF::R_AARCH64_PREL32: in getSizeForTypeAArch64()
153 case ELF::R_AARCH64_MOVW_UABS_G0: in getSizeForTypeAArch64()
154 case ELF::R_AARCH64_MOVW_UABS_G0_NC: in getSizeForTypeAArch64()
155 case ELF::R_AARCH64_MOVW_UABS_G1: in getSizeForTypeAArch64()
156 case ELF::R_AARCH64_MOVW_UABS_G1_NC: in getSizeForTypeAArch64()
157 case ELF::R_AARCH64_MOVW_UABS_G2: in getSizeForTypeAArch64()
158 case ELF::R_AARCH64_MOVW_UABS_G2_NC: in getSizeForTypeAArch64()
159 case ELF::R_AARCH64_MOVW_UABS_G3: in getSizeForTypeAArch64()
160 case ELF::R_AARCH64_ABS32: in getSizeForTypeAArch64()
162 case ELF::R_AARCH64_ABS64: in getSizeForTypeAArch64()
163 case ELF::R_AARCH64_PREL64: in getSizeForTypeAArch64()
168 bool skipRelocationTypeX86(uint64_t Type) { return Type == ELF::R_X86_64_NONE; } in skipRelocationTypeX86()
171 return Type == ELF::R_AARCH64_NONE || Type == ELF::R_AARCH64_LD_PREL_LO19; in skipRelocationTypeAArch64()
210 case ELF::R_AARCH64_TLSDESC_LD64_LO12: in skipRelocationProcessAArch64()
211 case ELF::R_AARCH64_TLSDESC_ADR_PAGE21: in skipRelocationProcessAArch64()
212 case ELF::R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC: in skipRelocationProcessAArch64()
213 case ELF::R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21: { in skipRelocationProcessAArch64()
229 case ELF::R_AARCH64_LD64_GOT_LO12_NC: in skipRelocationProcessAArch64()
230 case ELF::R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC: in skipRelocationProcessAArch64()
231 case ELF::R_AARCH64_TLSDESC_LD64_LO12: { in skipRelocationProcessAArch64()
241 case ELF::R_AARCH64_ADR_PREL_PG_HI21: in skipRelocationProcessAArch64()
242 case ELF::R_AARCH64_ADD_ABS_LO12_NC: in skipRelocationProcessAArch64()
243 case ELF::R_AARCH64_ADR_GOT_PAGE: in skipRelocationProcessAArch64()
244 case ELF::R_AARCH64_LD64_GOT_LO12_NC: in skipRelocationProcessAArch64()
256 case ELF::R_X86_64_32: in adjustValueX86()
258 case ELF::R_X86_64_PC32: in adjustValueX86()
269 case ELF::R_AARCH64_ABS32: in adjustValueAArch64()
271 case ELF::R_AARCH64_PREL16: in adjustValueAArch64()
272 case ELF::R_AARCH64_PREL32: in adjustValueAArch64()
273 case ELF::R_AARCH64_PREL64: in adjustValueAArch64()
281 if (Type == ELF::R_X86_64_32S) in extractValueX86()
291 errs() << object::getELFRelocationTypeName(ELF::EM_AARCH64, Type) << '\n'; in extractValueAArch64()
293 case ELF::R_AARCH64_ABS16: in extractValueAArch64()
294 case ELF::R_AARCH64_ABS32: in extractValueAArch64()
295 case ELF::R_AARCH64_ABS64: in extractValueAArch64()
297 case ELF::R_AARCH64_PREL16: in extractValueAArch64()
299 case ELF::R_AARCH64_PREL32: in extractValueAArch64()
301 case ELF::R_AARCH64_PREL64: in extractValueAArch64()
303 case ELF::R_AARCH64_TLSDESC_CALL: in extractValueAArch64()
304 case ELF::R_AARCH64_JUMP26: in extractValueAArch64()
305 case ELF::R_AARCH64_CALL26: in extractValueAArch64()
309 case ELF::R_AARCH64_TSTBR14: in extractValueAArch64()
313 case ELF::R_AARCH64_CONDBR19: in extractValueAArch64()
317 case ELF::R_AARCH64_ADR_GOT_PAGE: in extractValueAArch64()
318 case ELF::R_AARCH64_TLSDESC_ADR_PREL21: in extractValueAArch64()
319 case ELF::R_AARCH64_TLSDESC_ADR_PAGE21: in extractValueAArch64()
320 case ELF::R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21: in extractValueAArch64()
321 case ELF::R_AARCH64_ADR_PREL_LO21: in extractValueAArch64()
322 case ELF::R_AARCH64_ADR_PREL_PG_HI21: in extractValueAArch64()
323 case ELF::R_AARCH64_ADR_PREL_PG_HI21_NC: { in extractValueAArch64()
339 case ELF::R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC: in extractValueAArch64()
340 case ELF::R_AARCH64_TLSDESC_LD64_LO12: in extractValueAArch64()
341 case ELF::R_AARCH64_LD64_GOT_LO12_NC: in extractValueAArch64()
342 case ELF::R_AARCH64_LDST64_ABS_LO12_NC: { in extractValueAArch64()
348 case ELF::R_AARCH64_TLSLE_ADD_TPREL_HI12: in extractValueAArch64()
349 case ELF::R_AARCH64_TLSLE_ADD_TPREL_LO12_NC: in extractValueAArch64()
350 case ELF::R_AARCH64_TLSDESC_ADD_LO12: in extractValueAArch64()
351 case ELF::R_AARCH64_ADD_ABS_LO12_NC: { in extractValueAArch64()
356 case ELF::R_AARCH64_LDST128_ABS_LO12_NC: { in extractValueAArch64()
362 case ELF::R_AARCH64_LDST32_ABS_LO12_NC: { in extractValueAArch64()
368 case ELF::R_AARCH64_LDST16_ABS_LO12_NC: { in extractValueAArch64()
374 case ELF::R_AARCH64_LDST8_ABS_LO12_NC: { in extractValueAArch64()
380 case ELF::R_AARCH64_MOVW_UABS_G3: in extractValueAArch64()
381 case ELF::R_AARCH64_MOVW_UABS_G2_NC: in extractValueAArch64()
382 case ELF::R_AARCH64_MOVW_UABS_G2: in extractValueAArch64()
383 case ELF::R_AARCH64_MOVW_UABS_G1_NC: in extractValueAArch64()
384 case ELF::R_AARCH64_MOVW_UABS_G1: in extractValueAArch64()
385 case ELF::R_AARCH64_MOVW_UABS_G0_NC: in extractValueAArch64()
386 case ELF::R_AARCH64_MOVW_UABS_G0: in extractValueAArch64()
399 case ELF::R_X86_64_GOT32: in isGOTX86()
400 case ELF::R_X86_64_GOTPCREL: in isGOTX86()
401 case ELF::R_X86_64_GOTTPOFF: in isGOTX86()
402 case ELF::R_X86_64_GOTOFF64: in isGOTX86()
403 case ELF::R_X86_64_GOTPC32: in isGOTX86()
404 case ELF::R_X86_64_GOT64: in isGOTX86()
405 case ELF::R_X86_64_GOTPCREL64: in isGOTX86()
406 case ELF::R_X86_64_GOTPC64: in isGOTX86()
407 case ELF::R_X86_64_GOTPLT64: in isGOTX86()
408 case ELF::R_X86_64_GOTPC32_TLSDESC: in isGOTX86()
409 case ELF::R_X86_64_GOTPCRELX: in isGOTX86()
410 case ELF::R_X86_64_REX_GOTPCRELX: in isGOTX86()
419 case ELF::R_AARCH64_ADR_GOT_PAGE: in isGOTAArch64()
420 case ELF::R_AARCH64_LD64_GOT_LO12_NC: in isGOTAArch64()
421 case ELF::R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC: in isGOTAArch64()
422 case ELF::R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21: in isGOTAArch64()
423 case ELF::R_AARCH64_TLSDESC_ADR_PREL21: in isGOTAArch64()
424 case ELF::R_AARCH64_TLSDESC_ADR_PAGE21: in isGOTAArch64()
425 case ELF::R_AARCH64_TLSDESC_LD64_LO12: in isGOTAArch64()
426 case ELF::R_AARCH64_TLSDESC_ADD_LO12: in isGOTAArch64()
427 case ELF::R_AARCH64_TLSDESC_CALL: in isGOTAArch64()
436 case ELF::R_X86_64_TPOFF32: in isTLSX86()
437 case ELF::R_X86_64_TPOFF64: in isTLSX86()
438 case ELF::R_X86_64_GOTTPOFF: in isTLSX86()
447 case ELF::R_AARCH64_TLSDESC_ADR_PREL21: in isTLSAArch64()
448 case ELF::R_AARCH64_TLSDESC_ADR_PAGE21: in isTLSAArch64()
449 case ELF::R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC: in isTLSAArch64()
450 case ELF::R_AARCH64_TLSLE_ADD_TPREL_HI12: in isTLSAArch64()
451 case ELF::R_AARCH64_TLSLE_ADD_TPREL_LO12_NC: in isTLSAArch64()
452 case ELF::R_AARCH64_TLSDESC_LD64_LO12: in isTLSAArch64()
453 case ELF::R_AARCH64_TLSDESC_ADD_LO12: in isTLSAArch64()
454 case ELF::R_AARCH64_TLSDESC_CALL: in isTLSAArch64()
455 case ELF::R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21: in isTLSAArch64()
464 case ELF::R_X86_64_64: in isPCRelativeX86()
465 case ELF::R_X86_64_32: in isPCRelativeX86()
466 case ELF::R_X86_64_32S: in isPCRelativeX86()
467 case ELF::R_X86_64_16: in isPCRelativeX86()
468 case ELF::R_X86_64_8: in isPCRelativeX86()
469 case ELF::R_X86_64_TPOFF32: in isPCRelativeX86()
471 case ELF::R_X86_64_PC8: in isPCRelativeX86()
472 case ELF::R_X86_64_PC32: in isPCRelativeX86()
473 case ELF::R_X86_64_PC64: in isPCRelativeX86()
474 case ELF::R_X86_64_GOTPCREL: in isPCRelativeX86()
475 case ELF::R_X86_64_PLT32: in isPCRelativeX86()
476 case ELF::R_X86_64_GOTOFF64: in isPCRelativeX86()
477 case ELF::R_X86_64_GOTPC32: in isPCRelativeX86()
478 case ELF::R_X86_64_GOTTPOFF: in isPCRelativeX86()
479 case ELF::R_X86_64_GOTPCRELX: in isPCRelativeX86()
480 case ELF::R_X86_64_REX_GOTPCRELX: in isPCRelativeX86()
489 case ELF::R_AARCH64_ABS16: in isPCRelativeAArch64()
490 case ELF::R_AARCH64_ABS32: in isPCRelativeAArch64()
491 case ELF::R_AARCH64_ABS64: in isPCRelativeAArch64()
492 case ELF::R_AARCH64_LDST64_ABS_LO12_NC: in isPCRelativeAArch64()
493 case ELF::R_AARCH64_ADD_ABS_LO12_NC: in isPCRelativeAArch64()
494 case ELF::R_AARCH64_LDST128_ABS_LO12_NC: in isPCRelativeAArch64()
495 case ELF::R_AARCH64_LDST32_ABS_LO12_NC: in isPCRelativeAArch64()
496 case ELF::R_AARCH64_LDST16_ABS_LO12_NC: in isPCRelativeAArch64()
497 case ELF::R_AARCH64_LDST8_ABS_LO12_NC: in isPCRelativeAArch64()
498 case ELF::R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC: in isPCRelativeAArch64()
499 case ELF::R_AARCH64_TLSLE_ADD_TPREL_HI12: in isPCRelativeAArch64()
500 case ELF::R_AARCH64_TLSLE_ADD_TPREL_LO12_NC: in isPCRelativeAArch64()
501 case ELF::R_AARCH64_LD64_GOT_LO12_NC: in isPCRelativeAArch64()
502 case ELF::R_AARCH64_TLSDESC_LD64_LO12: in isPCRelativeAArch64()
503 case ELF::R_AARCH64_TLSDESC_ADD_LO12: in isPCRelativeAArch64()
504 case ELF::R_AARCH64_MOVW_UABS_G0: in isPCRelativeAArch64()
505 case ELF::R_AARCH64_MOVW_UABS_G0_NC: in isPCRelativeAArch64()
506 case ELF::R_AARCH64_MOVW_UABS_G1: in isPCRelativeAArch64()
507 case ELF::R_AARCH64_MOVW_UABS_G1_NC: in isPCRelativeAArch64()
508 case ELF::R_AARCH64_MOVW_UABS_G2: in isPCRelativeAArch64()
509 case ELF::R_AARCH64_MOVW_UABS_G2_NC: in isPCRelativeAArch64()
510 case ELF::R_AARCH64_MOVW_UABS_G3: in isPCRelativeAArch64()
512 case ELF::R_AARCH64_TLSDESC_CALL: in isPCRelativeAArch64()
513 case ELF::R_AARCH64_CALL26: in isPCRelativeAArch64()
514 case ELF::R_AARCH64_JUMP26: in isPCRelativeAArch64()
515 case ELF::R_AARCH64_TSTBR14: in isPCRelativeAArch64()
516 case ELF::R_AARCH64_CONDBR19: in isPCRelativeAArch64()
517 case ELF::R_AARCH64_ADR_PREL_LO21: in isPCRelativeAArch64()
518 case ELF::R_AARCH64_ADR_PREL_PG_HI21: in isPCRelativeAArch64()
519 case ELF::R_AARCH64_ADR_PREL_PG_HI21_NC: in isPCRelativeAArch64()
520 case ELF::R_AARCH64_ADR_GOT_PAGE: in isPCRelativeAArch64()
521 case ELF::R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21: in isPCRelativeAArch64()
522 case ELF::R_AARCH64_TLSDESC_ADR_PREL21: in isPCRelativeAArch64()
523 case ELF::R_AARCH64_TLSDESC_ADR_PAGE21: in isPCRelativeAArch64()
524 case ELF::R_AARCH64_PREL16: in isPCRelativeAArch64()
525 case ELF::R_AARCH64_PREL32: in isPCRelativeAArch64()
526 case ELF::R_AARCH64_PREL64: in isPCRelativeAArch64()
580 return Type == ELF::R_X86_64_GOTPCRELX || Type == ELF::R_X86_64_REX_GOTPCRELX; in isX86GOTPCRELX()
587 return Type == ELF::R_AARCH64_RELATIVE; in isRelative()
588 return Type == ELF::R_X86_64_RELATIVE; in isRelative()
593 return Type == ELF::R_AARCH64_IRELATIVE; in isIRelative()
594 return Type == ELF::R_X86_64_IRELATIVE; in isIRelative()
605 return ELF::R_AARCH64_NONE; in getNone()
606 return ELF::R_X86_64_NONE; in getNone()
611 return ELF::R_AARCH64_PREL32; in getPC32()
612 return ELF::R_X86_64_PC32; in getPC32()
617 return ELF::R_AARCH64_PREL64; in getPC64()
618 return ELF::R_X86_64_PC64; in getPC64()