llvm.org GIT mirror llvm / 88c1103
Add ELF relocation types for Mips. Patch by Jack Carter and Reed Kotler at Mips. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141935 91177308-0d34-0410-b5e6-96231b3b80d8 Akira Hatanaka 9 years ago
1 changed file(s) with 55 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
598598 R_ARM_THM_TLS_DESCSEQ32 = 0x82
599599 };
600600
601
601 // ELF Relocation types for Mips
602 enum {
603 R_MIPS_NONE = 0,
604 R_MIPS_16 = 1,
605 R_MIPS_32 = 2,
606 R_MIPS_REL32 = 3,
607 R_MIPS_26 = 4,
608 R_MIPS_HI16 = 5,
609 R_MIPS_LO16 = 6,
610 R_MIPS_GPREL16 = 7,
611 R_MIPS_LITERAL = 8,
612 R_MIPS_GOT16 = 9,
613 R_MIPS_PC16 = 10,
614 R_MIPS_CALL16 = 11,
615 R_MIPS_GPREL32 = 12,
616 R_MIPS_SHIFT5 = 16,
617 R_MIPS_SHIFT6 = 17,
618 R_MIPS_64 = 18,
619 R_MIPS_GOT_DISP = 19,
620 R_MIPS_GOT_PAGE = 20,
621 R_MIPS_GOT_OFST = 21,
622 R_MIPS_GOT_HI16 = 22,
623 R_MIPS_GOT_LO16 = 23,
624 R_MIPS_SUB = 24,
625 R_MIPS_INSERT_A = 25,
626 R_MIPS_INSERT_B = 26,
627 R_MIPS_DELETE = 27,
628 R_MIPS_HIGHER = 28,
629 R_MIPS_HIGHEST = 29,
630 R_MIPS_CALL_HI16 = 30,
631 R_MIPS_CALL_LO16 = 31,
632 R_MIPS_SCN_DISP = 32,
633 R_MIPS_REL16 = 33,
634 R_MIPS_ADD_IMMEDIATE = 34,
635 R_MIPS_PJUMP = 35,
636 R_MIPS_RELGOT = 36,
637 R_MIPS_JALR = 37,
638 R_MIPS_TLS_DTPMOD32 = 38,
639 R_MIPS_TLS_DTPREL32 = 39,
640 R_MIPS_TLS_DTPMOD64 = 40,
641 R_MIPS_TLS_DTPREL64 = 41,
642 R_MIPS_TLS_GD = 42,
643 R_MIPS_TLS_LDM = 43,
644 R_MIPS_TLS_DTPREL_HI16 = 44,
645 R_MIPS_TLS_DTPREL_LO16 = 45,
646 R_MIPS_TLS_GOTTPREL = 46,
647 R_MIPS_TLS_TPREL32 = 47,
648 R_MIPS_TLS_TPREL64 = 48,
649 R_MIPS_TLS_TPREL_HI16 = 49,
650 R_MIPS_TLS_TPREL_LO16 = 50,
651 R_MIPS_GLOB_DAT = 51,
652 R_MIPS_COPY = 126,
653 R_MIPS_JUMP_SLOT = 127,
654 R_MIPS_NUM = 218
655 };
602656
603657 // Section header.
604658 struct Elf32_Shdr {