changeset 39494:4a51dde8ee81

(LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z nocombreloc, in case -z combreloc is the default.
author Andreas Schwab <schwab@suse.de>
date Fri, 28 Sep 2001 12:58:23 +0000
parents b92a87893145
children 7a705b2dce35
files src/s/gnu-linux.h
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/s/gnu-linux.h	Fri Sep 28 08:03:51 2001 +0000
+++ b/src/s/gnu-linux.h	Fri Sep 28 12:58:23 2001 +0000
@@ -185,6 +185,12 @@
 #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.