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:
parent
6ff1481d5c
commit
f760fd6128
@ -162,7 +162,11 @@ __ElfType(Auxinfo);
|
|||||||
#define R_SPARC_UA16 55
|
#define R_SPARC_UA16 55
|
||||||
|
|
||||||
/* Define "machine" characteristics */
|
/* 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_DATA ELFDATA2MSB
|
||||||
#define ELF_TARG_MACH ELF_ARCH
|
#define ELF_TARG_MACH ELF_ARCH
|
||||||
#define ELF_TARG_VER 1
|
#define ELF_TARG_VER 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user