$NetBSD: patch-ah,v 1.1.1.1 2006/02/20 00:10:47 hfath Exp $

--- src/unexelf.c.orig	2005-11-13 03:05:16.000000000 +0100
+++ src/unexelf.c
@@ -494,7 +494,7 @@ typedef struct {
 #  define ElfBitsW(bits, type) Elf/**/bits/**/_/**/type
 # endif
 # ifndef ELFSIZE
-#  ifdef _LP64
+#  ifdef _LP64 || defined(__alpha__)
 #   define ELFSIZE 64
 #  else
 #   define ELFSIZE 32
@@ -975,7 +975,7 @@ unexec(char *new_name, char *old_name, u
 		memcpy(NEW_SECTION_H(nn).sh_offset + new_base, src,
 		       NEW_SECTION_H(nn).sh_size);
 
-#ifdef __alpha__
+#if defined(__alpha__) && !defined(__NetBSD__)
 		/* Update Alpha COFF symbol table: */
 		if (strcmp
 		    (old_section_names + OLD_SECTION_H(n).sh_name, ".mdebug")
