]> git.eshelyaron.com Git - emacs.git/commitdiff
(LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
authorAndreas Schwab <schwab@suse.de>
Fri, 28 Sep 2001 12:58:23 +0000 (12:58 +0000)
committerAndreas Schwab <schwab@suse.de>
Fri, 28 Sep 2001 12:58:23 +0000 (12:58 +0000)
nocombreloc, in case -z combreloc is the default.

src/s/gnu-linux.h

index 7b2a6647f8482a9ca237f2c645c46d7ff42ef509..f9a95e5672c5ebb7f68c3246ab1bbbd57ea369ab 100644 (file)
@@ -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.