home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1999 May / pcp151c.iso / misc / src / install / modutils / include / elf_sparc64.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-06  |  486 b   |  22 lines

  1. /* Machine-specific elf macros for the Sparc.  */
  2. #ident "$Id: elf_sparc64.h,v 1.1.1.1 1998/01/06 20:51:07 ewt Exp $"
  3.  
  4. #define ELFCLASSM    ELFCLASS64
  5. #define ELFDATAM    ELFDATA2MSB
  6.  
  7. #define MATCH_MACHINE(x)  (x == EM_SPARC64)
  8.  
  9. #define SHT_RELM    SHT_RELA
  10. #define Elf64_RelM    Elf64_Rela
  11.  
  12. #ifndef ELF64_R_SYM
  13. #define ELF64_R_SYM(x)    ((x) >> 32)
  14. #define ELF64_R_TYPE(x)    ((unsigned)(x))
  15. #endif
  16.  
  17. #ifndef ELF64_ST_BIND
  18. #define ELF64_ST_BIND(x)    ((x) >> 4)
  19. #define ELF64_ST_TYPE(x)    ((x) & 0xf)
  20. #endif
  21.  
  22.