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
This commit is contained in:
Loren J. Rittle 2002-04-04 20:49:38 +00:00 committed by Loren J. Rittle
parent a71742a8e7
commit 3c55704ebb
2 changed files with 14 additions and 0 deletions

View 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

View File

@ -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"