From 8427dec96b1d72027a72983f780d852dfbb8deb6 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 26 Aug 1994 01:44:01 +0000 Subject: [PATCH] Add LINUX_QMAGIC conditional. --- src/s/gnu-linux.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index 6dfc6c724fa..aff40d68446 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h @@ -240,11 +240,21 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #define HAVE_SYSVIPC +#ifdef LINUX_QMAGIC + +#define HAVE_TEXT_START +#define UNEXEC unexsunos4.o +#define N_PAGSIZ(x) PAGE_SIZE + +#else /* not LINUX_QMAGIC */ + #define A_TEXT_OFFSET(hdr) (N_MAGIC(hdr) == QMAGIC ? sizeof (struct exec) : 0) #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr)) #define ADJUST_EXEC_HEADER \ unexec_text_start = N_TXTADDR(ohdr) + A_TEXT_OFFSET(ohdr) +#endif /* not LINUX_QMAGIC */ + #if 0 /* In 19.23 and 19.24, configure sometimes fails to define these. It has to do with the fact that configure uses CFLAGS when linking -- 2.39.5