summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2003-01-05 03:48:55 +0000
committerjake <jake@FreeBSD.org>2003-01-05 03:48:55 +0000
commite9f9befcb11e6af9c7f61fc80b72721915b6ff78 (patch)
tree6ff7fb0a56c727369abd3fcaed547eed2363cc27
parent6243006062d2b36ba6967e44b6f1fd9fa00173e4 (diff)
downloadFreeBSD-src-e9f9befcb11e6af9c7f61fc80b72721915b6ff78.zip
FreeBSD-src-e9f9befcb11e6af9c7f61fc80b72721915b6ff78.tar.gz
Make imgact_elf32.c compile on sparc64.
Obtained from: ia64
-rw-r--r--sys/sparc64/include/elf.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/sparc64/include/elf.h b/sys/sparc64/include/elf.h
index e1e31c0..a774843 100644
--- a/sys/sparc64/include/elf.h
+++ b/sys/sparc64/include/elf.h
@@ -33,9 +33,12 @@
* ELF definitions for the sparc64 architecture.
*/
+#include <sys/elf32.h> /* Definitions common to all 32 bit architectures. */
#include <sys/elf64.h> /* Definitions common to all 64 bit architectures. */
+#ifndef __ELF_WORD_SIZE
#define __ELF_WORD_SIZE 64 /* Used by <sys/elf_generic.h> */
+#endif
#include <sys/elf_generic.h>
#define ELF_ARCH EM_SPARCV9
@@ -47,6 +50,13 @@
*/
typedef struct { /* Auxiliary vector entry on initial stack */
+ int a_type; /* Entry type. */
+ union {
+ int a_val; /* Integer value. */
+ } a_un;
+} Elf32_Auxinfo;
+
+typedef struct { /* Auxiliary vector entry on initial stack */
long a_type; /* Entry type. */
union {
long a_val; /* Integer value. */
OpenPOWER on IntegriCloud