summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>1999-02-01 16:33:02 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>1999-02-01 16:33:02 +0000
commit8eb5fabda7c81b4a144b4bf6f0319b0dc9572a47 (patch)
tree5c7104b53c95569198e2b428c7ac889b7d776373
parentdfbc6436f54f13cdf0c8a4987a5b44a36dc791b0 (diff)
Define another dynamic tag as well as allow for use by dynld compile
-rw-r--r--sys/sys/exec_elf.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/sys/exec_elf.h b/sys/sys/exec_elf.h
index c701c6702dc..089d08c9179 100644
--- a/sys/sys/exec_elf.h
+++ b/sys/sys/exec_elf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_elf.h,v 1.12 1998/02/22 01:00:26 niklas Exp $ */
+/* $OpenBSD: exec_elf.h,v 1.13 1999/02/01 16:33:01 pefo Exp $ */
/*
* Copyright (c) 1995, 1996 Erik Theisen. All rights reserved.
*
@@ -338,7 +338,8 @@ extern Elf32_Dyn _DYNAMIC[];
#define DT_DEBUG 21 /* bugger */
#define DT_TEXTREL 22 /* Allow rel. mod. to unwritable seg */
#define DT_JMPREL 23 /* add. of PLT's relocation entries */
-#define DT_NUM 24 /* Number used. */
+#define DT_BIND_NOW 24 /* Bind now regardless of env setting */
+#define DT_NUM 25 /* Number used. */
#define DT_LOPROC 0x70000000 /* reserved range for processor */
#define DT_HIPROC 0x7fffffff /* specific dynamic array tags */
@@ -348,7 +349,7 @@ unsigned int elf_hash(const unsigned char *name);
/*
* XXX - these _KERNEL items aren't part of the ABI!
*/
-#ifdef _KERNEL
+#if defined(_KERNEL) || defined(_DYN_LOADER)
#define ELF32_NO_ADDR ((u_long) ~0) /* Indicates addr. not yet filled in */
#define ELF_AUX_ENTRIES 8 /* Size of aux array passed to loader */
@@ -384,6 +385,9 @@ struct elf_args {
u_long arg_os; /* OS tag */
};
+#endif
+
+#ifdef _KERNEL
int exec_elf_makecmds __P((struct proc *, struct exec_package *));
void *elf_copyargs __P((struct exec_package *, struct ps_strings *,
void *, void *));