From 27b25cc06540f65e6fe63eacaa0f57dcae4813a9 Mon Sep 17 00:00:00 2001 From: deraadt Date: Sat, 20 Apr 2019 23:10:00 +0000 Subject: 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. --- sys/sys/exec_elf.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'sys/sys/exec_elf.h') 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; -- cgit v1.2.3-59-g8ed1b