change CLASS depending upon __ELF_WORD_SIZE. This is necessary if

someone wants to try to run 32bit binaries on sparc64.
This commit is contained in:
John-Mark Gurney 2003-07-16 01:14:40 +00:00
parent 6ff1481d5c
commit f760fd6128

View File

@ -162,7 +162,11 @@ __ElfType(Auxinfo);
#define R_SPARC_UA16 55
/* Define "machine" characteristics */
#define ELF_TARG_CLASS ELFCLASS64
#if __ELF_WORD_SIZE == 32
#define ELF_TARG_CLASS ELFCLASS32
#else
#define ELF_TARG_CLASS ELFCLASS64
#endif
#define ELF_TARG_DATA ELFDATA2MSB
#define ELF_TARG_MACH ELF_ARCH
#define ELF_TARG_VER 1