Suppress address randomization on Darwin. Do not merge into trunk.
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Mon, 11 Jul 2011 23:07:49 +0000 (08:07 +0900)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Mon, 11 Jul 2011 23:07:49 +0000 (08:07 +0900)
src/ChangeLog
src/s/darwin.h

index 7193374..84280a9 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add -fno-pie so as to suppress
+       address randomization (Bug#8395).
+
 2011-07-07  Kenichi Handa  <handa@m17n.org>
 
        * composite.c (composition_compute_stop_pos): Ignore a static
index 2b0addb..89d010a 100644 (file)
@@ -181,7 +181,7 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
    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 LD_SWITCH_SYSTEM_TEMACS -fno-pie -prebind LIBS_NSGUI -Xlinker -headerpad -Xlinker HEADERPAD_EXTRA
 
 #define C_SWITCH_SYSTEM_TEMACS -Dtemacs