Home | History | Annotate | Line # | Download | only in include
elf_machdep.h revision 1.8
      1 /*	$NetBSD: elf_machdep.h,v 1.8 2000/04/02 15:35:49 minoura Exp $	*/
      2 
      3 #define	ELF32_MACHDEP_ENDIANNESS	ELFDATA2LSB
      4 #define	ELF32_MACHDEP_ID_CASES						\
      5 		case EM_386:						\
      6 		case EM_486:						\
      7 			break;
      8 
      9 #define	ELF64_MACHDEP_ENDIANNESS	XXX	/* break compilation */
     10 #define	ELF64_MACHDEP_ID_CASES						\
     11 		/* no 64-bit ELF machine types supported */
     12 
     13 #define ARCH_ELFSIZE		32	/* MD native binary size */
     14 
     15 /* i386 relocations */
     16 #define	R_386_NONE	0
     17 #define	R_386_32	1
     18 #define	R_386_PC32	2
     19 #define	R_386_GOT32	3
     20 #define	R_386_PLT32	4
     21 #define	R_386_COPY	5
     22 #define	R_386_GLOB_DAT	6
     23 #define	R_386_JMP_SLOT	7
     24 #define	R_386_RELATIVE	8
     25 #define	R_386_GOTOFF	9
     26 #define	R_386_GOTPC	10
     27 /* The following relocations are GNU extensions. */
     28 #define	R_386_16	20
     29 #define	R_386_PC16	21
     30 #define	R_386_8		22
     31 #define	R_386_PC8	23
     32 
     33 #define	R_TYPE(name)	__CONCAT(R_386_,name)
     34