changeset 5363:d37a5b990e49

(A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Defined.
author Richard M. Stallman <rms@gnu.org>
date Sun, 26 Dec 1993 09:10:10 +0000
parents d1fa597d923d
children 99b5ca69dea7
files src/s/gnu-linux.h
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/s/gnu-linux.h	Sun Dec 26 09:06:44 1993 +0000
+++ b/src/s/gnu-linux.h	Sun Dec 26 09:10:10 1993 +0000
@@ -226,3 +226,8 @@
 #endif
 
 #define HAVE_SYSVIPC
+
+#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)