X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/ca67e7b465996afb3821d6a075c4dc6a7f0f5d52..1c15e88899094343f75aeba04122cd96a96b428e:/usr/src/include/a.out.h diff --git a/usr/src/include/a.out.h b/usr/src/include/a.out.h index 89101ddebb..5de9d9f501 100644 --- a/usr/src/include/a.out.h +++ b/usr/src/include/a.out.h @@ -3,7 +3,7 @@ * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. * - * @(#)a.out.h 5.2 (Berkeley) 4/7/87 + * @(#)a.out.h 5.3 (Berkeley) 6/24/90 */ /* @@ -20,10 +20,19 @@ #define N_BADMAG(x) \ (((x).a_magic)!=OMAGIC && ((x).a_magic)!=NMAGIC && ((x).a_magic)!=ZMAGIC) +#if defined(vax) || defined(tahoe) #define N_TXTOFF(x) \ - ((x).a_magic==ZMAGIC ? 1024 : sizeof (struct exec)) + ((x).a_magic == ZMAGIC ? 1024 : sizeof (struct exec)) +#endif + +#if defined(hp300) +#define N_TXTOFF(x) \ + ((x).a_magic == ZMAGIC ? 4096 : sizeof (struct exec)) +#endif + #define N_SYMOFF(x) \ (N_TXTOFF(x) + (x).a_text+(x).a_data + (x).a_trsize+(x).a_drsize) + #define N_STROFF(x) \ (N_SYMOFF(x) + (x).a_syms)