aboutsummaryrefslogtreecommitdiff
path: root/include/a.out.vax.h
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-04-25 04:20:11 +0000
committerJohn Gilmore <gnu@cygnus>1991-04-25 04:20:11 +0000
commita07cc61341225966fd714e8715aeca6c558b5b8e (patch)
tree4619bd0c087f07b5b8cd155e1bf34ecdce2dbf0e /include/a.out.vax.h
parenta6ac0c5998db0fb3b89c11800507b7307dba692b (diff)
downloadgdb-a07cc61341225966fd714e8715aeca6c558b5b8e.zip
gdb-a07cc61341225966fd714e8715aeca6c558b5b8e.tar.gz
gdb-a07cc61341225966fd714e8715aeca6c558b5b8e.tar.bz2
Initial revision
Diffstat (limited to 'include/a.out.vax.h')
-rwxr-xr-xinclude/a.out.vax.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/a.out.vax.h b/include/a.out.vax.h
new file mode 100755
index 0000000..4ece018
--- /dev/null
+++ b/include/a.out.vax.h
@@ -0,0 +1,20 @@
+/* VAX-specific definitions for a.out file header fields. */
+
+#define PAGE_SIZE 512 /* aka NBPG in <sys/param.h> */
+#define SEGMENT_SIZE PAGE_SIZE /* rounding between text/data ??! */
+#define TEXT_START_ADDR 0 /* Text start address: see
+ <machine/vmparam.h> USRTEXT. */
+#define STACK_END_ADDR 0x80000000-(14+14)*PAGE_SIZE /* see
+ <machine/vmparam.h> USRSTACK. */
+
+#define N_BADMAG(x) \
+ (N_MAGIC(x) != OMAGIC && N_MAGIC(x) != NMAGIC \
+ && N_MAGIC(x) != ZMAGIC)
+
+
+#define N_TXTOFF(x) ( (N_MAGIC((x)) == ZMAGIC) ? 1024 : EXEC_BYTES_SIZE )
+#define N_DATOFF(x) ( N_TXTOFF(x) + (x).a_text )
+#define N_TRELOFF(x) ( N_DATOFF(x) + (x).a_data )
+#define N_DRELOFF(x) ( N_TRELOFF(x) + (x).a_trsize )
+#define N_SYMOFF(x) ( N_DRELOFF(x) + (x).a_drsize )
+#define N_STROFF(x) ( N_SYMOFF(x) + (x).a_syms )