From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
To: Bob Halley <halley@play-bow.org>
Cc: 8395@debbugs.gnu.org, "William R. Otte" <wotte@dre.vanderbilt.edu>
Subject: bug#8395: ASLR Issue?
Date: Wed, 06 Jul 2011 16:41:48 +0900 [thread overview]
Message-ID: <wliprfam9v.wl%mituharu@math.s.chiba-u.ac.jp> (raw)
In-Reply-To: <14674727-2DB3-4CFE-80F1-24B2B3512DDB@play-bow.org>
>>>>> On Tue, 5 Jul 2011 15:45:49 +0100, Bob Halley <halley@play-bow.org> said:
> I too see this problem trying to build Aquamacs' emacs-24-based
> branch on Lion GM with Xcode 4.1 preview 7. The problem is *not* an
> unknown section name. I added some debugging printfs, and this is
> what I see. Basically things seem to be going OK until we try to
> write __data, where we get EFAULT when we try to write() it. I
> don't know why sectp->addr is giving EFAULT; perhaps ASLR? If I
> discover more, I will add to the ticket.
Could you try the patch below? (I can't test it myself.)
As far as I tested, gcc -fno-pie *.o does not give an error on older
versions (though gcc -fno-pie *.c does in cc1). So we can go without
additional configure-time checks if this modification works on Xcode
4.1 and/or Lion.
YAMAMOTO Mitsuharu
mituharu@math.s.chiba-u.ac.jp
For trunk:
=== modified file 'configure.in'
*** configure.in 2011-07-05 08:21:38 +0000
--- configure.in 2011-07-06 06:13:33 +0000
***************
*** 3349,3355 ****
libs_nsgui=
headerpad_extra=690
fi
! LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
## This is here because src/Makefile.in did some extra fiddling around
## with LD_SWITCH_SYSTEM. The cpp logic was:
--- 3349,3355 ----
libs_nsgui=
headerpad_extra=690
fi
! LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
## This is here because src/Makefile.in did some extra fiddling around
## with LD_SWITCH_SYSTEM. The cpp logic was:
For emacs-23 branch:
=== modified file 'src/s/darwin.h'
*** src/s/darwin.h 2011-01-02 23:50:46 +0000
--- src/s/darwin.h 2011-07-06 06:07:50 +0000
***************
*** 181,187 ****
end of the header for adding load commands. Needed for dumping.
0x690 is the total size of 30 segment load commands (at 56
each); under Cocoa 31 commands are required. */
! #define LD_SWITCH_SYSTEM_TEMACS -prebind LIBS_NSGUI -Xlinker -headerpad -Xlinker HEADERPAD_EXTRA
#define C_SWITCH_SYSTEM_TEMACS -Dtemacs
--- 181,187 ----
end of the header for adding load commands. Needed for dumping.
0x690 is the total size of 30 segment load commands (at 56
each); under Cocoa 31 commands are required. */
! #define LD_SWITCH_SYSTEM_TEMACS -fno-pie -prebind LIBS_NSGUI -Xlinker -headerpad -Xlinker HEADERPAD_EXTRA
#define C_SWITCH_SYSTEM_TEMACS -Dtemacs
next prev parent reply other threads:[~2011-07-06 7:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-31 14:09 bug#8395: Compile error with Xcode 4.1 in unexec William R. Otte
2011-07-05 14:45 ` bug#8395: ASLR Issue? Bob Halley
2011-07-06 7:41 ` YAMAMOTO Mitsuharu [this message]
[not found] ` <DCE21D64-0878-48EB-88F2-0BD981E9BFE1@play-bow.org>
2011-07-07 22:57 ` YAMAMOTO Mitsuharu
2011-07-10 15:19 ` Bob Halley
2011-07-11 0:13 ` YAMAMOTO Mitsuharu
2011-07-11 14:11 ` Bob Halley
2011-07-11 23:22 ` YAMAMOTO Mitsuharu
2011-07-11 18:15 ` bug#8395: Title bar issue Bob Halley
2011-07-11 23:25 ` bug#8395: (no subject) YAMAMOTO Mitsuharu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=wliprfam9v.wl%mituharu@math.s.chiba-u.ac.jp \
--to=mituharu@math.s.chiba-u.ac.jp \
--cc=8395@debbugs.gnu.org \
--cc=halley@play-bow.org \
--cc=wotte@dre.vanderbilt.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.