This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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]

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


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