boehm-gc alpha*-*-freebsd* configuration patch

Richard Henderson rth@redhat.com
Thu Mar 21 19:47:00 GMT 2002


On Thu, Mar 21, 2002 at 08:48:29PM -0600, Loren James Rittle wrote:
> + /* Handle unmapped hole alpha*-*-freebsd[45]* puts between etext and edata. */
> + 	extern char etext;
> + 	extern char edata;
> + 	extern char end;
> + #	define NEED_FIND_LIMIT
> + #	define DATASTART ((ptr_t)(&etext))
> + #	define DATAEND (GC_find_limit (DATASTART, TRUE))
> + #	define DATASTART2 ((ptr_t)(&edata))
> + #	define DATAEND2 ((ptr_t)(&end))

This isn't going to work with new binutils.  GCC will assume these
are in .sdata/.sbss.  Instead do

	extern char etext[];
	extern char edata[];
	extern char end[];


r~



More information about the Java-patches mailing list