elf.h 664 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef __UM_ELF_H
  2. #define __UM_ELF_H
  3. #include "linux/config.h"
  4. #include "asm/archparam.h"
  5. extern long elf_aux_hwcap;
  6. #define ELF_HWCAP (elf_aux_hwcap)
  7. #define SET_PERSONALITY(ex, ibcs2) do ; while(0)
  8. #define ELF_EXEC_PAGESIZE 4096
  9. #define elf_check_arch(x) (1)
  10. #ifdef CONFIG_64_BIT
  11. #define ELF_CLASS ELFCLASS64
  12. #else
  13. #define ELF_CLASS ELFCLASS32
  14. #endif
  15. #define USE_ELF_CORE_DUMP
  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. #define R_386_NUM 11
  28. #endif