1 1.2.6.1 is /* $NetBSD: elf_machdep.h,v 1.2.6.1 1997/03/12 21:15:02 is Exp $ */ 2 1.1 cgd 3 1.1 cgd #define ELF32_MACHDEP_ID_CASES \ 4 1.1 cgd case Elf_em_mips: \ 5 1.1 cgd break; 6 1.1 cgd 7 1.1 cgd #define ELF64_MACHDEP_ID_CASES \ 8 1.1 cgd /* no 64-bit ELF machine types supported */ 9 1.2.6.1 is 10 1.2.6.1 is 11 1.2.6.1 is /* mips relocs. */ 12 1.2.6.1 is 13 1.2.6.1 is #define R_MIPS_NONE 0 14 1.2.6.1 is #define R_MIPS_16 1 15 1.2.6.1 is #define R_MIPS_32 2 16 1.2.6.1 is #define R_MIPS_REL32 3 17 1.2.6.1 is #define R_MIPS_REL R_MIPS_REL32 18 1.2.6.1 is #define R_MIPS_26 4 19 1.2.6.1 is #define R_MIPS_HI16 5 /* high 16 bits of symbol value */ 20 1.2.6.1 is #define R_MIPS_LO16 6 /* low 16 bits of symbol value */ 21 1.2.6.1 is #define R_MIPS_GPREL16 7 /* GP-relative reference */ 22 1.2.6.1 is #define R_MIPS_LITERAL 8 /* Reference to literal section */ 23 1.2.6.1 is #define R_MIPS_GOT16 9 /* Reference to global offset table */ 24 1.2.6.1 is #define R_MIPS_GOT R_MIPS_GOT16 25 1.2.6.1 is #define R_MIPS_PC16 10 /* 16 bit PC relative reference */ 26 1.2.6.1 is #define R_MIPS_CALL16 11 /* 16 bit call thru glbl offset tbl */ 27 1.2.6.1 is #define R_MIPS_CALL R_MIPS_CALL16 28 1.2.6.1 is #define R_MIPS_GPREL32 12 29 1.2.6.1 is 30 1.2.6.1 is /* 13, 14, 15 are not defined at this point. */ 31 1.2.6.1 is #define R_MIPS_UNUSED1 13 32 1.2.6.1 is #define R_MIPS_UNUSED2 14 33 1.2.6.1 is #define R_MIPS_UNUSED3 15 34 1.2.6.1 is 35 1.2.6.1 is /* 36 1.2.6.1 is * The remaining relocs are apparently part of the 64-bit Irix ELF ABI. 37 1.2.6.1 is */ 38 1.2.6.1 is #define R_MIPS_SHIFT5 16 39 1.2.6.1 is #define R_MIPS_SHIFT6 17 40 1.2.6.1 is 41 1.2.6.1 is #define R_MIPS_64 18 42 1.2.6.1 is #define R_MIPS_GOT_DISP 19 43 1.2.6.1 is #define R_MIPS_GOT_PAGE 20 44 1.2.6.1 is #define R_MIPS_GOT_OFST 21 45 1.2.6.1 is #define R_MIPS_GOT_HI16 22 46 1.2.6.1 is #define R_MIPS_GOT_LO16 23 47 1.2.6.1 is #define R_MIPS_SUB 24 48 1.2.6.1 is #define R_MIPS_INSERT_A 25 49 1.2.6.1 is #define R_MIPS_INSERT_B 26 50 1.2.6.1 is #define R_MIPS_DELETE 27 51 1.2.6.1 is #define R_MIPS_HIGHER 28 52 1.2.6.1 is #define R_MIPS_HIGHEST 29 53 1.2.6.1 is #define R_MIPS_CALL_HI16 30 54 1.2.6.1 is #define R_MIPS_CALL_LO16 31 55 1.2.6.1 is #define R_MIPS_SCN_DISP 32 56 1.2.6.1 is #define R_MIPS_REL16 33 57 1.2.6.1 is #define R_MIPS_ADD_IMMEDIATE 34 58 1.2.6.1 is #define R_MIPS_PJUMP 35 59 1.2.6.1 is #define R_MIPS_RELGOT 36 60 1.2.6.1 is 61 1.2.6.1 is #define R_MIPS_max 37 62 1.2.6.1 is #define R_TYPE(name) __CONCAT(R_MIPS_,name) 63 1.2.6.1 is 64 1.2.6.1 is 65 1.2 jonathan /* 66 1.2 jonathan * Tell the kernel ELF exec code not to try relocating the interpreter 67 1.2.6.1 is * (ld.so) for dynamically-linked ELF binaries. 68 1.2 jonathan */ 69 1.2 jonathan #ifdef _KERNEL 70 1.2 jonathan #define ELF_INTERP_NON_RELOCATABLE 71 1.2 jonathan #endif 72