From: Andreas Schwab Date: Fri, 28 Sep 2001 12:58:23 +0000 (+0000) Subject: (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z X-Git-Tag: emacs-21.1~127 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=854ad2d56b8fdb88fec25a0900919d468d63c33d;p=emacs.git (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z nocombreloc, in case -z combreloc is the default. --- diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index 7b2a6647f84..f9a95e5672c 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h @@ -185,6 +185,12 @@ Boston, MA 02111-1307, USA. */ #else #define LD_SWITCH_SYSTEM LD_SWITCH_X_SITE_AUX #endif /* __mips__ */ + +/* Link temacs with -z nocombreloc so that unexec works right, whether or + not -z combreloc is the default. GNU ld ignores unknown -z KEYOWRD + switches, so this also works with older versions that don't implement + -z combreloc. */ +#define LD_SWITCH_SYSTEM_TEMACS -z nocombreloc #endif /* __ELF__ */ /* As of version 1.1.51, Linux did not actually implement SIGIO.