summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1993-04-16 13:18:52 +0000
committermycroft <mycroft@NetBSD.org>1993-04-16 13:18:52 +0000
commit7db68148eaa2f6927952ea67a40cb6d7822591bd (patch)
tree5bb7781674cafa414d1c869bc3da167aed2195e3 /include
parent2d8799343e1a4a678e58c5d4b1eefaba48fa85a6 (diff)
Add QMAGIC support.
Diffstat (limited to 'include')
-rw-r--r--include/a.out.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/a.out.h b/include/a.out.h
index 5312cc51f09..7a960e1c9bb 100644
--- a/include/a.out.h
+++ b/include/a.out.h
@@ -59,15 +59,16 @@
/* Address of the bottom of the data segment. */
#define N_DATADDR(ex) \
- N_ALIGN(ex, N_TXTADDR(x) + (ex).a_text)
+ N_ALIGN(ex, N_TXTADDR(ex) + (ex).a_text)
/* Text segment offset. */
#define N_TXTOFF(ex) \
- ((ex).a_magic == ZMAGIC ? __LDPGSZ : sizeof(struct exec))
+ ((ex).a_magic == ZMAGIC ? __LDPGSZ \
+ : ((ex).a_magic == QMAGIC ? 0 : sizeof(struct exec)))
/* Data segment offset. */
#define N_DATOFF(ex) \
- N_ALIGN(ex, N_TXTOFF(x) + (ex).a_text)
+ N_ALIGN(ex, N_TXTOFF(ex) + (ex).a_text)
/* Symbol table offset. */
#define N_SYMOFF(ex) \