diff options
author | Loren J. Rittle <ljrittle@acm.org> | 2002-04-04 20:49:38 +0000 |
---|---|---|
committer | Loren J. Rittle <ljrittle@gcc.gnu.org> | 2002-04-04 20:49:38 +0000 |
commit | 3c55704ebb8c75fcc39e022f674075aecf4b2eda (patch) | |
tree | 6576c096bc9386193f144e31f0c6eb84412dcc89 /boehm-gc/include | |
parent | a71742a8e7089aa9c8f0c3104bb3a84852a99b74 (diff) | |
download | gcc-3c55704ebb8c75fcc39e022f674075aecf4b2eda.zip gcc-3c55704ebb8c75fcc39e022f674075aecf4b2eda.tar.gz gcc-3c55704ebb8c75fcc39e022f674075aecf4b2eda.tar.bz2 |
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
Diffstat (limited to 'boehm-gc/include')
-rw-r--r-- | boehm-gc/include/private/gcconfig.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/boehm-gc/include/private/gcconfig.h b/boehm-gc/include/private/gcconfig.h index efbfc39..a3f468f 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" |