elf_machdep.h

Go to the documentation of this file.
00001 /*
00002  * borrowed from NetBSD
00003  */
00004 #define ELF32_MACHDEP_ENDIANNESS        ELFDATA2LSB
00005 #define ELF32_MACHDEP_ID_CASES                                          \
00006                 case EM_386:                                            \
00007                 case EM_486:                                            \
00008                         break;
00009 
00010 #define ELF64_MACHDEP_ENDIANNESS        XXX     /* break compilation */
00011 #define ELF64_MACHDEP_ID_CASES                                          \
00012                 /* no 64-bit ELF machine types supported */
00013 
00014 #define ELF32_MACHDEP_ID                EM_386
00015 
00016 #define ARCH_ELFSIZE            32      /* MD native binary size */
00017 
00018 /* i386 relocations */
00019 #define R_386_NONE      0
00020 #define R_386_32        1
00021 #define R_386_PC32      2
00022 #define R_386_GOT32     3
00023 #define R_386_PLT32     4
00024 #define R_386_COPY      5
00025 #define R_386_GLOB_DAT  6
00026 #define R_386_JMP_SLOT  7
00027 #define R_386_RELATIVE  8
00028 #define R_386_GOTOFF    9
00029 #define R_386_GOTPC     10
00030 /* The following relocations are GNU extensions. */
00031 #define R_386_16        20
00032 #define R_386_PC16      21
00033 #define R_386_8         22
00034 #define R_386_PC8       23
00035 
00036 #define R_TYPE(name)    __CONCAT(R_386_,name)

Generated on Wed May 24 23:04:17 2006 for LSE/OS by  doxygen 1.4.6