From: Loren J. Rittle Date: Thu, 4 Apr 2002 20:49:38 +0000 (+0000) Subject: gcconfig.h: Add support for an unmapped memory hole between the end of the initialize... X-Git-Tag: releases/gcc-3.3.0~5894 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3c55704ebb8c75fcc39e022f674075aecf4b2eda;p=thirdparty%2Fgcc.git gcconfig.h: Add support for an unmapped memory hole between the end of the initialized data... * 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 --- diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog index 571e792feb5a..4d2af97d3d40 100644 --- a/boehm-gc/ChangeLog +++ b/boehm-gc/ChangeLog @@ -1,3 +1,9 @@ +2002-04-04 Loren J. Rittle + + * 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 * include/private/gcconfig.h: define DYNAMIC_LOADING for ELF diff --git a/boehm-gc/include/private/gcconfig.h b/boehm-gc/include/private/gcconfig.h index efbfc39c79ab..a3f468f68911 100644 --- a/boehm-gc/include/private/gcconfig.h +++ b/boehm-gc/include/private/gcconfig.h @@ -1058,8 +1058,16 @@ # 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"