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