summaryrefslogtreecommitdiffstats
path: root/sys/sys/exec_elf.h
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2016-08-23 06:46:17 +0000
committerkettenis <kettenis@openbsd.org>2016-08-23 06:46:17 +0000
commit86fa57a2792c6374b0849dd7b818a11e676e60ba (patch)
tree1b64df9de2817b5b3928176bc4f66da0d660bb06 /sys/sys/exec_elf.h
parentremove Protocol directive from client/server configs that causes (diff)
downloadwireguard-openbsd-86fa57a2792c6374b0849dd7b818a11e676e60ba.tar.xz
wireguard-openbsd-86fa57a2792c6374b0849dd7b818a11e676e60ba.zip
Implement support for DT_INIT_ARRAY, DT_FINI_ARRAY and DT_PREINIT_ARRAY.
Don't skip DT_INIT and DT_FINI for the main executable. This matches what Linux and Solaris do. ok guenther@
Diffstat (limited to 'sys/sys/exec_elf.h')
-rw-r--r--sys/sys/exec_elf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/exec_elf.h b/sys/sys/exec_elf.h
index f1c5d48dc16..f3186e6db6e 100644
--- a/sys/sys/exec_elf.h
+++ b/sys/sys/exec_elf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_elf.h,v 1.59 2016/07/14 06:03:46 guenther Exp $ */
+/* $OpenBSD: exec_elf.h,v 1.60 2016/08/23 06:46:17 kettenis Exp $ */
/*
* Copyright (c) 1995, 1996 Erik Theisen. All rights reserved.
*
@@ -526,7 +526,7 @@ typedef struct {
#define DF_1_CONLFAT 0x00002000
/* ld.so: number of low tags that are used saved internally (0 .. DT_NUM-1) */
-#define DT_NUM (DT_JMPREL+1)
+#define DT_NUM (DT_PREINIT_ARRAYSZ+1)
/* Standard ELF hashing function */
unsigned int elf_hash(const unsigned char *name);