diff options
author | John-Mark Gurney <jmg@FreeBSD.org> | 2003-07-16 01:14:40 +0000 |
---|---|---|
committer | John-Mark Gurney <jmg@FreeBSD.org> | 2003-07-16 01:14:40 +0000 |
commit | f760fd61282ea4d6eef98d74b3e5cadf31952ca4 (patch) | |
tree | 289255e6fe0aab21cb60a38821cade4559daa0a3 /sys/sparc64/include/elf.h | |
parent | 6ff1481d5c8f2d1803a1872cf2b3c86a660ae337 (diff) | |
download | src-f760fd61282ea4d6eef98d74b3e5cadf31952ca4.tar.gz src-f760fd61282ea4d6eef98d74b3e5cadf31952ca4.zip |
change CLASS depending upon __ELF_WORD_SIZE. This is necessary if
someone wants to try to run 32bit binaries on sparc64.
Notes
Notes:
svn path=/head/; revision=117661
Diffstat (limited to 'sys/sparc64/include/elf.h')
-rw-r--r-- | sys/sparc64/include/elf.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/sparc64/include/elf.h b/sys/sparc64/include/elf.h index a774843fe8d3..5532bc912582 100644 --- a/sys/sparc64/include/elf.h +++ b/sys/sparc64/include/elf.h @@ -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 |