blob: 65a05a087042afc05b38290e0c27fda9170438a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ah,v 1.7 2003/02/25 02:14:59 uebayasi Exp $
--- src/unexelf.c.orig Tue Aug 20 20:38:23 2002
+++ src/unexelf.c
@@ -486,7 +486,7 @@
# define ElfBitsW(bits, type) Elf/**/bits/**/_/**/type
# endif
# ifndef ELFSIZE
-# ifdef _LP64
+# if defined(_LP64) || defined(__alpha__)
# define ELFSIZE 64
# else
# define ELFSIZE 32
@@ -962,7 +962,7 @@
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")
== 0)
|