Go to the documentation of this file.
   30 #define _I386_ELF_H_ 1 
   32 #if defined(__i386__) || defined(_MACHINE_ELF_WANT_32BIT) 
   39 #if defined(__ELF_WORD_SIZE) && __ELF_WORD_SIZE == 64 
   43 #ifndef __ELF_WORD_SIZE 
   44 #define __ELF_WORD_SIZE 32       
   49 #define ELF_ARCH        EM_386 
   51 #define ELF_MACHINE_OK(x) ((x) == EM_386 || (x) == EM_486) 
   69 #if __ELF_WORD_SIZE == 64 
   94 #define AT_EXECPATH     15       
   96 #define AT_CANARYLEN    17       
   97 #define AT_OSRELDATE    18       
   99 #define AT_PAGESIZES    20       
  100 #define AT_PAGESIZESLEN 21       
  101 #define AT_TIMEKEEP     22       
  102 #define AT_STACKPROT    23       
  110 #define R_386_COUNT     38       
  113 #define ELF_TARG_CLASS  ELFCLASS32 
  114 #define ELF_TARG_DATA   ELFDATA2LSB 
  115 #define ELF_TARG_MACH   EM_386 
  116 #define ELF_TARG_VER    1 
  118 #define ET_DYN_LOAD_ADDR 0x01001000 
  120 #elif defined(__amd64__) 
  126 #ifndef __ELF_WORD_SIZE 
  127 #define __ELF_WORD_SIZE 64       
  133 #define ELF_ARCH        EM_X86_64 
  134 #define ELF_ARCH32      EM_386 
  136 #define ELF_MACHINE_OK(x) ((x) == EM_X86_64) 
  178 #define AT_EXECPATH     15       
  180 #define AT_CANARYLEN    17       
  181 #define AT_OSRELDATE    18       
  183 #define AT_PAGESIZES    20       
  184 #define AT_PAGESIZESLEN 21       
  185 #define AT_TIMEKEEP     22       
  186 #define AT_STACKPROT    23       
  194 #define R_X86_64_COUNT  24       
  197 #if __ELF_WORD_SIZE == 32 
  198 #define ELF_TARG_CLASS  ELFCLASS32 
  200 #define ELF_TARG_CLASS  ELFCLASS64 
  202 #define ELF_TARG_DATA   ELFDATA2LSB 
  203 #define ELF_TARG_MACH   EM_X86_64 
  204 #define ELF_TARG_VER    1 
  206 #if __ELF_WORD_SIZE == 32 
  207 #define ET_DYN_LOAD_ADDR 0x01001000 
  209 #define ET_DYN_LOAD_ADDR 0x01021000