This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix garbage collector for NetBSD


This is a back-port of a patch that is in boehm-gc7.0alpha1.  It fixes 
boehm-gc on NetBSD platforms when using shared libraries.

With this patch the libjava testsuite failures on netbsd/i386 is down from 
1033 to just 14.

Bootstrapped on i386-netbsd2.0 and installed on Mainline and the 4.0 
branch.

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).


Index: dyn_load.c
===================================================================
RCS file: /cvs/gcc/gcc/boehm-gc/dyn_load.c,v
retrieving revision 1.23
diff -p -p -r1.23 dyn_load.c
*** dyn_load.c	9 Feb 2005 21:33:02 -0000	1.23
--- dyn_load.c	26 Feb 2005 15:39:41 -0000
***************
*** 80,85 ****
--- 80,90 ----
  #   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)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]