[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] fix for unexec bootstrap fail on darwin
From: |
Mike Mattie |
Subject: |
[PATCH] fix for unexec bootstrap fail on darwin |
Date: |
Wed, 30 Apr 2008 10:42:53 -0700 |
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.
emacs-unexec-fix.diff
Description: Binary data
A complete patch requires modifying comments in darwin.h and
unexecmacosx.c . I chose not
to so that the patch would remain below the limit for legal paperwork.
I have also ran into the "pure storage overflow" problem after my
fix, I will address that subsequently
if appropriate after some RTFM'ing.
Cheers,
Mike Mattie
- [PATCH] fix for unexec bootstrap fail on darwin,
Mike Mattie <=