summaryrefslogtreecommitdiffstats
path: root/sys/sys/exec_elf.h
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2019-12-01 10:25:50 +0000
committerjsg <jsg@openbsd.org>2019-12-01 10:25:50 +0000
commit1e04c7f59a16ad4b3f513d6a8e7ab95eefa07abb (patch)
treed3c6f33bccbb45a694a4d3911691cb9061469ec2 /sys/sys/exec_elf.h
parentgrow i386 cd ramdisk a little bit (diff)
downloadwireguard-openbsd-1e04c7f59a16ad4b3f513d6a8e7ab95eefa07abb.tar.xz
wireguard-openbsd-1e04c7f59a16ad4b3f513d6a8e7ab95eefa07abb.zip
revert exec_elf.h rev 1.85
committed by mistake as part of an unrelated change
Diffstat (limited to 'sys/sys/exec_elf.h')
-rw-r--r--sys/sys/exec_elf.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/sys/sys/exec_elf.h b/sys/sys/exec_elf.h
index 403221a3b3b..8a88773093c 100644
--- a/sys/sys/exec_elf.h
+++ b/sys/sys/exec_elf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_elf.h,v 1.85 2019/11/29 06:34:46 deraadt Exp $ */
+/* $OpenBSD: exec_elf.h,v 1.86 2019/12/01 10:25:50 jsg Exp $ */
/*
* Copyright (c) 1995, 1996 Erik Theisen. All rights reserved.
*
@@ -56,7 +56,7 @@ typedef __int64_t Elf64_Sxword;
typedef __uint64_t Elf64_Xword;
typedef __uint64_t Elf64_Lword;
-typedef __uint16_t Elf64_Half;
+typedef __uint32_t Elf64_Half;
typedef __uint16_t Elf64_Quarter;
/*
@@ -141,11 +141,11 @@ typedef struct {
unsigned char e_ident[EI_NIDENT]; /* Id bytes */
Elf64_Quarter e_type; /* file type */
Elf64_Quarter e_machine; /* machine type */
- Elf64_Word e_version; /* version number */
+ Elf64_Half e_version; /* version number */
Elf64_Addr e_entry; /* entry point */
Elf64_Off e_phoff; /* Program hdr offset */
Elf64_Off e_shoff; /* Section hdr offset */
- Elf64_Word e_flags; /* Processor flags */
+ Elf64_Half e_flags; /* Processor flags */
Elf64_Quarter e_ehsize; /* sizeof ehdr */
Elf64_Quarter e_phentsize; /* Program header entry size */
Elf64_Quarter e_phnum; /* Number of program headers */
@@ -225,14 +225,14 @@ typedef struct {
} Elf32_Shdr;
typedef struct {
- Elf64_Word sh_name; /* section name */
- Elf64_Word sh_type; /* section type */
+ Elf64_Half sh_name; /* section name */
+ Elf64_Half sh_type; /* section type */
Elf64_Xword sh_flags; /* section flags */
Elf64_Addr sh_addr; /* virtual address */
Elf64_Off sh_offset; /* file offset */
Elf64_Xword sh_size; /* section size */
- Elf64_Word sh_link; /* link to another */
- Elf64_Word sh_info; /* misc info */
+ Elf64_Half sh_link; /* link to another */
+ Elf64_Half sh_info; /* misc info */
Elf64_Xword sh_addralign; /* memory alignment */
Elf64_Xword sh_entsize; /* table entry size */
} Elf64_Shdr;
@@ -335,7 +335,7 @@ typedef struct elf32_sym {
} Elf32_Sym;
typedef struct {
- Elf64_Word st_name; /* Symbol name index in str table */
+ Elf64_Half st_name; /* Symbol name index in str table */
Elf_Byte st_info; /* type / binding attrs */
Elf_Byte st_other; /* unused */
Elf64_Quarter st_shndx; /* section index of symbol */
@@ -443,8 +443,8 @@ typedef struct {
} Elf32_Phdr;
typedef struct {
- Elf64_Word p_type; /* entry type */
- Elf64_Word p_flags; /* flags */
+ Elf64_Half p_type; /* entry type */
+ Elf64_Half p_flags; /* flags */
Elf64_Off p_offset; /* offset */
Elf64_Addr p_vaddr; /* virtual address */
Elf64_Addr p_paddr; /* physical address */
@@ -578,9 +578,9 @@ typedef struct {
} Elf32_Nhdr;
typedef struct {
- Elf64_Word n_namesz;
- Elf64_Word n_descsz;
- Elf64_Word n_type;
+ Elf64_Half n_namesz;
+ Elf64_Half n_descsz;
+ Elf64_Half n_type;
} Elf64_Nhdr;
/*
@@ -593,9 +593,9 @@ typedef struct {
} Elf32_Note;
typedef struct {
- Elf64_Word namesz;
- Elf64_Word descsz;
- Elf64_Word type;
+ Elf64_Half namesz;
+ Elf64_Half descsz;
+ Elf64_Half type;
} Elf64_Note;
/* Values for n_type. */