gcconfig.h: Add support for an unmapped memory hole between the end of the initialize...
authorLoren J. Rittle <ljrittle@acm.org>
Thu, 4 Apr 2002 20:49:38 +0000 (20:49 +0000)
committerLoren J. Rittle <ljrittle@gcc.gnu.org>
Thu, 4 Apr 2002 20:49:38 +0000 (20:49 +0000)
* include/private/gcconfig.h: Add support for an unmapped
memory hole between the end of the initialized data segment
and the start of the BSS on FreeBSD/i386.

From-SVN: r51867

boehm-gc/ChangeLog
boehm-gc/include/private/gcconfig.h

index 571e792..4d2af97 100644 (file)
@@ -1,3 +1,9 @@
+2002-04-04  Loren J. Rittle  <ljrittle@acm.org>
+
+       * include/private/gcconfig.h: Add support for an unmapped
+       memory hole between the end of the initialized data segment
+       and the start of the BSS on FreeBSD/i386.
+
 2002-03-30  Krister Walfridsson  <cato@df.lth.se>
 
        * include/private/gcconfig.h: define DYNAMIC_LOADING for ELF
index efbfc39..a3f468f 100644 (file)
 #      ifdef __ELF__
 #          define DYNAMIC_LOADING
 #      endif
+/* Handle unmapped hole i386*-*-freebsd[45]* may put between etext and edata. */
        extern char etext[];
+       extern char edata[];
+       extern char end[];
+#      define NEED_FIND_LIMIT
 #      define DATASTART ((ptr_t)(etext))
+#      define MIN(x,y) ((x) < (y) ? (x) : (y))
+#      define DATAEND (MIN (GC_find_limit (DATASTART, TRUE), DATASTART2))
+#      define DATASTART2 ((ptr_t)(edata))
+#      define DATAEND2 ((ptr_t)(end))
 #   endif
 #   ifdef NETBSD
 #      define OS_TYPE "NETBSD"