[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] fix for unexec bootstrap fail on darwin
From: |
Mike Mattie |
Subject: |
Re: [PATCH] fix for unexec bootstrap fail on darwin |
Date: |
Wed, 30 Apr 2008 11:28:35 -0700 |
On Wed, 30 Apr 2008 10:42:53 -0700
Mike Mattie <address@hidden> wrote:
> hello,
>
> I ran into "not enough room for load commands for new __DATA
> segments" from unexecmacosx.c
> while bootstrapping yesterday. I increased the room for load
> commands from 30, to 40 and acheived
> a successful bootstrap.
>
> I did not know exactly how much room was required so increasing the
> padding by 10 commands
> is a guess. otool -l src/emacs shows 43 load commands after
> bootstrap completed.
>
> I have included a one-liner fix with my solution.
>
I found a message about unused Mach-O header. It appears that room for 33
extra commands should suffice.
the minimal value of the Mach-O padding is then 0x738.
signature.asc
Description: PGP signature