summaryrefslogtreecommitdiff
path: root/boehm-gc
diff options
context:
space:
mode:
authorrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-26 15:40:07 +0000
committerrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-26 15:40:07 +0000
commitda5cba479cb262e158414001c7471a1082c8cc71 (patch)
treef76f5c6193f10848e611db6bdea137e5a73ad92a /boehm-gc
parentad307262e5f3d9db6abf813c791c2d45c8b707d2 (diff)
downloadgcc-da5cba479cb262e158414001c7471a1082c8cc71.tar.gz
* dyn_load.c: On NetBSD, include machine/elf_machdep.h and define
ELFSIZE in terms of ARCH_ELFSIZE (back-ported from gc7.0alpha1). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95582 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'boehm-gc')
-rw-r--r--boehm-gc/ChangeLog5
-rw-r--r--boehm-gc/dyn_load.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog
index 2194ad5863f..cb49b3a8d54 100644
--- a/boehm-gc/ChangeLog
+++ b/boehm-gc/ChangeLog
@@ -1,3 +1,8 @@
+2005-02-26 Richard Earnshaw <rearnsha@arm.com>
+
+ * dyn_load.c: On NetBSD, include machine/elf_machdep.h and define
+ ELFSIZE in terms of ARCH_ELFSIZE (back-ported from gc7.0alpha1).
+
2005-02-15 Bryce McKinlay <mckinlay@redhat.com>
PR libgcj/19823
diff --git a/boehm-gc/dyn_load.c b/boehm-gc/dyn_load.c
index dfe0a3c87e8..c5139aa80a8 100644
--- a/boehm-gc/dyn_load.c
+++ b/boehm-gc/dyn_load.c
@@ -80,6 +80,11 @@
# define l_name lm_name
#endif
+#if defined(NETBSD)
+# include <machine/elf_machdep.h>
+# define ELFSIZE ARCH_ELFSIZE
+#endif
+
#if defined(LINUX) && defined(__ELF__) || defined(SCO_ELF) || \
(defined(FREEBSD) && defined(__ELF__)) || defined(DGUX) || \
(defined(NETBSD) && defined(__ELF__)) || defined(HURD)