Lines Matching refs:ELF
143 if (Type == ELF::R_MIPS_HI16) in getMatchingLoType()
144 return ELF::R_MIPS_LO16; in getMatchingLoType()
145 if (Type == ELF::R_MICROMIPS_HI16) in getMatchingLoType()
146 return ELF::R_MICROMIPS_LO16; in getMatchingLoType()
147 if (Type == ELF::R_MIPS16_HI16) in getMatchingLoType()
148 return ELF::R_MIPS16_LO16; in getMatchingLoType()
151 Reloc.OriginalSymbol->getBinding() != ELF::STB_LOCAL) in getMatchingLoType()
152 return ELF::R_MIPS_NONE; in getMatchingLoType()
154 if (Type == ELF::R_MIPS_GOT16) in getMatchingLoType()
155 return ELF::R_MIPS_LO16; in getMatchingLoType()
156 if (Type == ELF::R_MICROMIPS_GOT16) in getMatchingLoType()
157 return ELF::R_MICROMIPS_LO16; in getMatchingLoType()
158 if (Type == ELF::R_MIPS16_GOT16) in getMatchingLoType()
159 return ELF::R_MIPS16_LO16; in getMatchingLoType()
161 return ELF::R_MIPS_NONE; in getMatchingLoType()
215 : MCELFObjectTargetWriter(Is64, OSABI, ELF::EM_MIPS, HasRelocationAddend) {} in MipsELFObjectWriter()
228 return ELF::R_MIPS_NONE; in getRelocType()
232 return ELF::R_MIPS_NONE; in getRelocType()
235 return IsPCRel ? ELF::R_MIPS_PC16 : ELF::R_MIPS_16; in getRelocType()
238 return IsPCRel ? ELF::R_MIPS_PC32 : ELF::R_MIPS_32; in getRelocType()
242 ? setRTypes(ELF::R_MIPS_PC32, ELF::R_MIPS_64, ELF::R_MIPS_NONE) in getRelocType()
243 : (unsigned)ELF::R_MIPS_64; in getRelocType()
250 return ELF::R_MIPS_PC16; in getRelocType()
252 return ELF::R_MICROMIPS_PC7_S1; in getRelocType()
254 return ELF::R_MICROMIPS_PC10_S1; in getRelocType()
256 return ELF::R_MICROMIPS_PC16_S1; in getRelocType()
258 return ELF::R_MICROMIPS_PC26_S1; in getRelocType()
260 return ELF::R_MICROMIPS_PC19_S2; in getRelocType()
262 return ELF::R_MICROMIPS_PC18_S3; in getRelocType()
264 return ELF::R_MICROMIPS_PC21_S1; in getRelocType()
266 return ELF::R_MIPS_PC19_S2; in getRelocType()
268 return ELF::R_MIPS_PC18_S3; in getRelocType()
270 return ELF::R_MIPS_PC21_S2; in getRelocType()
272 return ELF::R_MIPS_PC26_S2; in getRelocType()
274 return ELF::R_MIPS_PCHI16; in getRelocType()
276 return ELF::R_MIPS_PCLO16; in getRelocType()
284 return ELF::R_MIPS_TLS_DTPREL32; in getRelocType()
286 return ELF::R_MIPS_TLS_DTPREL64; in getRelocType()
288 return ELF::R_MIPS_TLS_TPREL32; in getRelocType()
290 return ELF::R_MIPS_TLS_TPREL64; in getRelocType()
292 return setRTypes(ELF::R_MIPS_GPREL32, in getRelocType()
293 is64Bit() ? ELF::R_MIPS_64 : ELF::R_MIPS_NONE, in getRelocType()
294 ELF::R_MIPS_NONE); in getRelocType()
296 return ELF::R_MIPS_GPREL16; in getRelocType()
298 return ELF::R_MIPS_26; in getRelocType()
300 return ELF::R_MIPS_CALL16; in getRelocType()
302 return ELF::R_MIPS_GOT16; in getRelocType()
304 return ELF::R_MIPS_HI16; in getRelocType()
306 return ELF::R_MIPS_LO16; in getRelocType()
308 return ELF::R_MIPS_TLS_GD; in getRelocType()
310 return ELF::R_MIPS_TLS_GOTTPREL; in getRelocType()
312 return ELF::R_MIPS_TLS_TPREL_HI16; in getRelocType()
314 return ELF::R_MIPS_TLS_TPREL_LO16; in getRelocType()
316 return ELF::R_MIPS_TLS_LDM; in getRelocType()
318 return ELF::R_MIPS_TLS_DTPREL_HI16; in getRelocType()
320 return ELF::R_MIPS_TLS_DTPREL_LO16; in getRelocType()
322 return ELF::R_MIPS_GOT_PAGE; in getRelocType()
324 return ELF::R_MIPS_GOT_OFST; in getRelocType()
326 return ELF::R_MIPS_GOT_DISP; in getRelocType()
328 return setRTypes(ELF::R_MIPS_GPREL16, ELF::R_MIPS_SUB, ELF::R_MIPS_HI16); in getRelocType()
330 return setRTypes(ELF::R_MICROMIPS_GPREL16, ELF::R_MICROMIPS_SUB, in getRelocType()
331 ELF::R_MICROMIPS_HI16); in getRelocType()
333 return setRTypes(ELF::R_MIPS_GPREL16, ELF::R_MIPS_SUB, ELF::R_MIPS_LO16); in getRelocType()
335 return setRTypes(ELF::R_MICROMIPS_GPREL16, ELF::R_MICROMIPS_SUB, in getRelocType()
336 ELF::R_MICROMIPS_LO16); in getRelocType()
338 return ELF::R_MIPS_HIGHER; in getRelocType()
340 return ELF::R_MIPS_HIGHEST; in getRelocType()
342 return ELF::R_MIPS_SUB; in getRelocType()
344 return ELF::R_MIPS_GOT_HI16; in getRelocType()
346 return ELF::R_MIPS_GOT_LO16; in getRelocType()
348 return ELF::R_MIPS_CALL_HI16; in getRelocType()
350 return ELF::R_MIPS_CALL_LO16; in getRelocType()
352 return ELF::R_MICROMIPS_26_S1; in getRelocType()
354 return ELF::R_MICROMIPS_HI16; in getRelocType()
356 return ELF::R_MICROMIPS_LO16; in getRelocType()
358 return ELF::R_MICROMIPS_GOT16; in getRelocType()
360 return ELF::R_MICROMIPS_CALL16; in getRelocType()
362 return ELF::R_MICROMIPS_GOT_DISP; in getRelocType()
364 return ELF::R_MICROMIPS_GOT_PAGE; in getRelocType()
366 return ELF::R_MICROMIPS_GOT_OFST; in getRelocType()
368 return ELF::R_MICROMIPS_TLS_GD; in getRelocType()
370 return ELF::R_MICROMIPS_TLS_LDM; in getRelocType()
372 return ELF::R_MICROMIPS_TLS_DTPREL_HI16; in getRelocType()
374 return ELF::R_MICROMIPS_TLS_DTPREL_LO16; in getRelocType()
376 return ELF::R_MICROMIPS_TLS_GOTTPREL; in getRelocType()
378 return ELF::R_MICROMIPS_TLS_TPREL_HI16; in getRelocType()
380 return ELF::R_MICROMIPS_TLS_TPREL_LO16; in getRelocType()
382 return ELF::R_MICROMIPS_SUB; in getRelocType()
384 return ELF::R_MICROMIPS_HIGHER; in getRelocType()
386 return ELF::R_MICROMIPS_HIGHEST; in getRelocType()
388 return ELF::R_MIPS_JALR; in getRelocType()
390 return ELF::R_MICROMIPS_JALR; in getRelocType()
458 return getMatchingLoType(Reloc) != ELF::R_MIPS_NONE; in sortRelocs()
465 assert(MatchingType != ELF::R_MIPS_NONE && in sortRelocs()
525 case ELF::R_MIPS_NONE: in needsRelocateWithSymbol()
535 case ELF::R_MIPS_GOT16: in needsRelocateWithSymbol()
536 case ELF::R_MIPS16_GOT16: in needsRelocateWithSymbol()
537 case ELF::R_MICROMIPS_GOT16: in needsRelocateWithSymbol()
538 case ELF::R_MIPS_HIGHER: in needsRelocateWithSymbol()
539 case ELF::R_MIPS_HIGHEST: in needsRelocateWithSymbol()
540 case ELF::R_MIPS_HI16: in needsRelocateWithSymbol()
541 case ELF::R_MIPS16_HI16: in needsRelocateWithSymbol()
542 case ELF::R_MICROMIPS_HI16: in needsRelocateWithSymbol()
543 case ELF::R_MIPS_LO16: in needsRelocateWithSymbol()
544 case ELF::R_MIPS16_LO16: in needsRelocateWithSymbol()
545 case ELF::R_MICROMIPS_LO16: in needsRelocateWithSymbol()
549 if (cast<MCSymbolELF>(Sym).getOther() & ELF::STO_MIPS_MICROMIPS) in needsRelocateWithSymbol()
553 case ELF::R_MIPS_GOT_PAGE: in needsRelocateWithSymbol()
554 case ELF::R_MICROMIPS_GOT_PAGE: in needsRelocateWithSymbol()
555 case ELF::R_MIPS_GOT_OFST: in needsRelocateWithSymbol()
556 case ELF::R_MICROMIPS_GOT_OFST: in needsRelocateWithSymbol()
557 case ELF::R_MIPS_16: in needsRelocateWithSymbol()
558 case ELF::R_MIPS_32: in needsRelocateWithSymbol()
559 case ELF::R_MIPS_GPREL32: in needsRelocateWithSymbol()
560 if (cast<MCSymbolELF>(Sym).getOther() & ELF::STO_MIPS_MICROMIPS) in needsRelocateWithSymbol()
563 case ELF::R_MIPS_26: in needsRelocateWithSymbol()
564 case ELF::R_MIPS_64: in needsRelocateWithSymbol()
565 case ELF::R_MIPS_GPREL16: in needsRelocateWithSymbol()
566 case ELF::R_MIPS_PC16: in needsRelocateWithSymbol()
567 case ELF::R_MIPS_SUB: in needsRelocateWithSymbol()
572 case ELF::R_MIPS_REL32: in needsRelocateWithSymbol()
573 case ELF::R_MIPS_LITERAL: in needsRelocateWithSymbol()
574 case ELF::R_MIPS_CALL16: in needsRelocateWithSymbol()
575 case ELF::R_MIPS_SHIFT5: in needsRelocateWithSymbol()
576 case ELF::R_MIPS_SHIFT6: in needsRelocateWithSymbol()
577 case ELF::R_MIPS_GOT_DISP: in needsRelocateWithSymbol()
578 case ELF::R_MIPS_GOT_HI16: in needsRelocateWithSymbol()
579 case ELF::R_MIPS_GOT_LO16: in needsRelocateWithSymbol()
580 case ELF::R_MIPS_INSERT_A: in needsRelocateWithSymbol()
581 case ELF::R_MIPS_INSERT_B: in needsRelocateWithSymbol()
582 case ELF::R_MIPS_DELETE: in needsRelocateWithSymbol()
583 case ELF::R_MIPS_CALL_HI16: in needsRelocateWithSymbol()
584 case ELF::R_MIPS_CALL_LO16: in needsRelocateWithSymbol()
585 case ELF::R_MIPS_SCN_DISP: in needsRelocateWithSymbol()
586 case ELF::R_MIPS_REL16: in needsRelocateWithSymbol()
587 case ELF::R_MIPS_ADD_IMMEDIATE: in needsRelocateWithSymbol()
588 case ELF::R_MIPS_PJUMP: in needsRelocateWithSymbol()
589 case ELF::R_MIPS_RELGOT: in needsRelocateWithSymbol()
590 case ELF::R_MIPS_JALR: in needsRelocateWithSymbol()
591 case ELF::R_MIPS_TLS_DTPMOD32: in needsRelocateWithSymbol()
592 case ELF::R_MIPS_TLS_DTPREL32: in needsRelocateWithSymbol()
593 case ELF::R_MIPS_TLS_DTPMOD64: in needsRelocateWithSymbol()
594 case ELF::R_MIPS_TLS_DTPREL64: in needsRelocateWithSymbol()
595 case ELF::R_MIPS_TLS_GD: in needsRelocateWithSymbol()
596 case ELF::R_MIPS_TLS_LDM: in needsRelocateWithSymbol()
597 case ELF::R_MIPS_TLS_DTPREL_HI16: in needsRelocateWithSymbol()
598 case ELF::R_MIPS_TLS_DTPREL_LO16: in needsRelocateWithSymbol()
599 case ELF::R_MIPS_TLS_GOTTPREL: in needsRelocateWithSymbol()
600 case ELF::R_MIPS_TLS_TPREL32: in needsRelocateWithSymbol()
601 case ELF::R_MIPS_TLS_TPREL64: in needsRelocateWithSymbol()
602 case ELF::R_MIPS_TLS_TPREL_HI16: in needsRelocateWithSymbol()
603 case ELF::R_MIPS_TLS_TPREL_LO16: in needsRelocateWithSymbol()
604 case ELF::R_MIPS_GLOB_DAT: in needsRelocateWithSymbol()
605 case ELF::R_MIPS_PC21_S2: in needsRelocateWithSymbol()
606 case ELF::R_MIPS_PC26_S2: in needsRelocateWithSymbol()
607 case ELF::R_MIPS_PC18_S3: in needsRelocateWithSymbol()
608 case ELF::R_MIPS_PC19_S2: in needsRelocateWithSymbol()
609 case ELF::R_MIPS_PCHI16: in needsRelocateWithSymbol()
610 case ELF::R_MIPS_PCLO16: in needsRelocateWithSymbol()
611 case ELF::R_MIPS_COPY: in needsRelocateWithSymbol()
612 case ELF::R_MIPS_JUMP_SLOT: in needsRelocateWithSymbol()
613 case ELF::R_MIPS_NUM: in needsRelocateWithSymbol()
614 case ELF::R_MIPS_PC32: in needsRelocateWithSymbol()
615 case ELF::R_MIPS_EH: in needsRelocateWithSymbol()
616 case ELF::R_MICROMIPS_26_S1: in needsRelocateWithSymbol()
617 case ELF::R_MICROMIPS_GPREL16: in needsRelocateWithSymbol()
618 case ELF::R_MICROMIPS_LITERAL: in needsRelocateWithSymbol()
619 case ELF::R_MICROMIPS_PC7_S1: in needsRelocateWithSymbol()
620 case ELF::R_MICROMIPS_PC10_S1: in needsRelocateWithSymbol()
621 case ELF::R_MICROMIPS_PC16_S1: in needsRelocateWithSymbol()
622 case ELF::R_MICROMIPS_CALL16: in needsRelocateWithSymbol()
623 case ELF::R_MICROMIPS_GOT_DISP: in needsRelocateWithSymbol()
624 case ELF::R_MICROMIPS_GOT_HI16: in needsRelocateWithSymbol()
625 case ELF::R_MICROMIPS_GOT_LO16: in needsRelocateWithSymbol()
626 case ELF::R_MICROMIPS_SUB: in needsRelocateWithSymbol()
627 case ELF::R_MICROMIPS_HIGHER: in needsRelocateWithSymbol()
628 case ELF::R_MICROMIPS_HIGHEST: in needsRelocateWithSymbol()
629 case ELF::R_MICROMIPS_CALL_HI16: in needsRelocateWithSymbol()
630 case ELF::R_MICROMIPS_CALL_LO16: in needsRelocateWithSymbol()
631 case ELF::R_MICROMIPS_SCN_DISP: in needsRelocateWithSymbol()
632 case ELF::R_MICROMIPS_JALR: in needsRelocateWithSymbol()
633 case ELF::R_MICROMIPS_HI0_LO16: in needsRelocateWithSymbol()
634 case ELF::R_MICROMIPS_TLS_GD: in needsRelocateWithSymbol()
635 case ELF::R_MICROMIPS_TLS_LDM: in needsRelocateWithSymbol()
636 case ELF::R_MICROMIPS_TLS_DTPREL_HI16: in needsRelocateWithSymbol()
637 case ELF::R_MICROMIPS_TLS_DTPREL_LO16: in needsRelocateWithSymbol()
638 case ELF::R_MICROMIPS_TLS_GOTTPREL: in needsRelocateWithSymbol()
639 case ELF::R_MICROMIPS_TLS_TPREL_HI16: in needsRelocateWithSymbol()
640 case ELF::R_MICROMIPS_TLS_TPREL_LO16: in needsRelocateWithSymbol()
641 case ELF::R_MICROMIPS_GPREL7_S2: in needsRelocateWithSymbol()
642 case ELF::R_MICROMIPS_PC23_S2: in needsRelocateWithSymbol()
643 case ELF::R_MICROMIPS_PC21_S1: in needsRelocateWithSymbol()
644 case ELF::R_MICROMIPS_PC26_S1: in needsRelocateWithSymbol()
645 case ELF::R_MICROMIPS_PC18_S3: in needsRelocateWithSymbol()
646 case ELF::R_MICROMIPS_PC19_S2: in needsRelocateWithSymbol()
651 case ELF::R_MIPS16_26: in needsRelocateWithSymbol()
652 case ELF::R_MIPS16_GPREL: in needsRelocateWithSymbol()
653 case ELF::R_MIPS16_CALL16: in needsRelocateWithSymbol()
654 case ELF::R_MIPS16_TLS_GD: in needsRelocateWithSymbol()
655 case ELF::R_MIPS16_TLS_LDM: in needsRelocateWithSymbol()
656 case ELF::R_MIPS16_TLS_DTPREL_HI16: in needsRelocateWithSymbol()
657 case ELF::R_MIPS16_TLS_DTPREL_LO16: in needsRelocateWithSymbol()
658 case ELF::R_MIPS16_TLS_GOTTPREL: in needsRelocateWithSymbol()
659 case ELF::R_MIPS16_TLS_TPREL_HI16: in needsRelocateWithSymbol()
660 case ELF::R_MIPS16_TLS_TPREL_LO16: in needsRelocateWithSymbol()