Subject: bug#13528: "find_emacs_zone_regions: too many regions" --with-wide-int on PPC 7447A Mac OS X 10.5.8

From: Peter Dyballa <[email-masked]>
Date: Wed, 23 Jan 2013 00:35:45 +0100

Am 22.01.2013 um 21:46 schrieb Paul Eggert:

> === modified file 'src/unexmacosx.c'
> --- src/unexmacosx.c	2013-01-01 09:11:05 +0000
> +++ src/unexmacosx.c	2013-01-22 20:46:07 +0000
> @@ -437,7 +437,7 @@ build_region_list (void)
> }
>
>
> -#define MAX_UNEXEC_REGIONS 400
> +#define MAX_UNEXEC_REGIONS 800
>
> static int num_unexec_regions;
> typedef struct {

With this patch applied, optimisation at -O0, 'make bootstrap'  
delivers 124 + 116 lines plus 447 lines after the lines

	32 LC_LOAD_DYLIB          52
	33 LC_LOAD_DYLIB          56
	34 LC_LOAD_DYLIB          52

The build now fails with:

	Writing LC_LOAD_DYLIB     command
	Writing LC_LOAD_DYLIB     command
	Writing LC_LOAD_DYLIB     command
	unexec: not enough room for load commands for new __DATA segments
	make[2]: *** [bootstrap-emacs] Error 1

--
Greetings

   Pete

If it dies, it's biology.  If it blows up, it's chemistry. If it  
doesn't work, it's physics.
			– University washroom sgraffito