From 854ad2d56b8fdb88fec25a0900919d468d63c33d Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Fri, 28 Sep 2001 12:58:23 +0000 Subject: [PATCH] (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z nocombreloc, in case -z combreloc is the default. --- src/s/gnu-linux.h | 6 ++++++ 1 file changed, 6 insertions(+) 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. -- 2.39.5