This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
GC fix for sh-linux
- From: SUGIOKA Toshinobu <sugioka at itonet dot co dot jp>
- To: java-patches at gcc dot gnu dot org
- Cc: linuxsh-dev at lists dot sourceforge dot net
- Date: Sun, 17 Jul 2005 11:20:07 +0900
- Subject: GC fix for sh-linux
Hi,
Java program built by gcj-3.4.4 always segmentation faults on sh-linux
kernel 2.6.x, glibc-2.3.4 nptl environment while GC initialization,
because it is accessing unallocated stack area.
Following patch fixes this problem, could someone apply it ?
* include/private/gcconfig.h (sh-linux): Use LINUX_STACKBOTTOM.
--- boehm-gc/include/private/gcconfig.h.orig 2005-04-19 07:23:46.000000000 +0900
+++ boehm-gc/include/private/gcconfig.h 2005-07-17 04:15:17.000000000 +0900
@@ -1750,7 +1750,7 @@
# endif
# ifdef LINUX
# define OS_TYPE "LINUX"
-# define STACKBOTTOM ((ptr_t) 0x7c000000)
+# define LINUX_STACKBOTTOM
# define USE_GENERIC_PUSH_REGS
# define DYNAMIC_LOADING
# define SEARCH_FOR_DATA_START
----
SUGIOKA Toshinobu