summaryrefslogtreecommitdiffstats
path: root/sys/sys/exec_elf.h
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2019-04-20 23:10:00 +0000
committerderaadt <deraadt@openbsd.org>2019-04-20 23:10:00 +0000
commit27b25cc06540f65e6fe63eacaa0f57dcae4813a9 (patch)
tree591b9da0f2b4d95b8812bd06bf6847f1d7d8a85c /sys/sys/exec_elf.h
parentWhen copying the EFI-stored kernel to the correct operating location, (diff)
downloadwireguard-openbsd-27b25cc06540f65e6fe63eacaa0f57dcae4813a9.tar.xz
wireguard-openbsd-27b25cc06540f65e6fe63eacaa0f57dcae4813a9.zip
The conversion of rdsetroot to -lelf failed on alpha: -lelf thought ELF SHDR
was 80 bytes in size, rather than 64 as listed in the ELF header. In Sep 2001 when ELF was being integrated into the tree, two of the ELF object types (and two more via #define) were given different (incorrect) sizes, and hid behind an #ifdef __alpha__ all this time. -lelf constructs the SHDR object by accumulating sizes of types, so this was finally exposed. A review of the tree shows no other consequences, so we can fix this now.
Diffstat (limited to 'sys/sys/exec_elf.h')
-rw-r--r--sys/sys/exec_elf.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/sys/exec_elf.h b/sys/sys/exec_elf.h
index 1fdd0f961fd..21d9ea72813 100644
--- a/sys/sys/exec_elf.h
+++ b/sys/sys/exec_elf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_elf.h,v 1.83 2019/01/22 23:23:18 jsg Exp $ */
+/* $OpenBSD: exec_elf.h,v 1.84 2019/04/20 23:10:00 deraadt Exp $ */
/*
* Copyright (c) 1995, 1996 Erik Theisen. All rights reserved.
*
@@ -49,13 +49,8 @@ typedef __uint64_t Elf64_Addr;
typedef __uint64_t Elf64_Off;
typedef __int32_t Elf64_Shalf;
-#ifdef __alpha__
-typedef __int64_t Elf64_Sword;
-typedef __uint64_t Elf64_Word;
-#else
typedef __int32_t Elf64_Sword;
typedef __uint32_t Elf64_Word;
-#endif
typedef __int64_t Elf64_Sxword;
typedef __uint64_t Elf64_Xword;