summaryrefslogtreecommitdiffstats
path: root/sys/sys/exec_elf.h
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2018-11-13 04:47:36 +0000
committerguenther <guenther@openbsd.org>2018-11-13 04:47:36 +0000
commit3719c13311a42b608782bb8251326538ad71293e (patch)
tree881352a238ef109d2f8642b59496d58178250b19 /sys/sys/exec_elf.h
parentJust err if we can't create secrets (diff)
downloadwireguard-openbsd-3719c13311a42b608782bb8251326538ad71293e.tar.xz
wireguard-openbsd-3719c13311a42b608782bb8251326538ad71293e.zip
Add GNU_HASH #defines; improve readelf output for SHT_GNU_HASH
ok naddy@ jca@
Diffstat (limited to 'sys/sys/exec_elf.h')
-rw-r--r--sys/sys/exec_elf.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/sys/exec_elf.h b/sys/sys/exec_elf.h
index 5a9756bda49..8ba57b79b1f 100644
--- a/sys/sys/exec_elf.h
+++ b/sys/sys/exec_elf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_elf.h,v 1.80 2018/01/22 09:01:39 mpi Exp $ */
+/* $OpenBSD: exec_elf.h,v 1.81 2018/11/13 04:47:36 guenther Exp $ */
/*
* Copyright (c) 1995, 1996 Erik Theisen. All rights reserved.
*
@@ -261,11 +261,15 @@ typedef struct {
#define SHT_DYNSYM 11 /* dynamic symbol table section */
#define SHT_NUM 12 /* number of section types */
#define SHT_SYMTAB_SHNDX 18 /* Section indexes (see SHN_XINDEX). */
+#define SHT_LOOS 0x60000000 /* reserved range for OS specific */
+#define SHT_HIOS 0x6fffffff /* section header types */
#define SHT_LOPROC 0x70000000 /* reserved range for processor */
#define SHT_HIPROC 0x7fffffff /* specific section header types */
#define SHT_LOUSER 0x80000000 /* reserved range for application */
#define SHT_HIUSER 0xffffffff /* specific indexes */
+#define SHT_GNU_HASH 0x6ffffff6 /* GNU-style hash table section */
+
/* Section names */
#define ELF_BSS ".bss" /* uninitialized data */
#define ELF_DATA ".data" /* initialized data */
@@ -524,6 +528,7 @@ typedef struct {
#define DT_HIPROC 0x7fffffff /* specific dynamic array tags */
/* some other useful tags */
+#define DT_GNU_HASH 0x6ffffef5 /* address of GNU hash table */
#define DT_RELACOUNT 0x6ffffff9 /* if present, number of RELATIVE */
#define DT_RELCOUNT 0x6ffffffa /* relocs, which must come first */
#define DT_FLAGS_1 0x6ffffffb