diff options
author | John Gilmore <gnu@cygnus> | 1991-04-25 04:20:11 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1991-04-25 04:20:11 +0000 |
commit | a07cc61341225966fd714e8715aeca6c558b5b8e (patch) | |
tree | 4619bd0c087f07b5b8cd155e1bf34ecdce2dbf0e /include/a.out.sun4.h | |
parent | a6ac0c5998db0fb3b89c11800507b7307dba692b (diff) | |
download | gdb-a07cc61341225966fd714e8715aeca6c558b5b8e.zip gdb-a07cc61341225966fd714e8715aeca6c558b5b8e.tar.gz gdb-a07cc61341225966fd714e8715aeca6c558b5b8e.tar.bz2 |
Initial revision
Diffstat (limited to 'include/a.out.sun4.h')
-rwxr-xr-x | include/a.out.sun4.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/a.out.sun4.h b/include/a.out.sun4.h new file mode 100755 index 0000000..0c89c2a --- /dev/null +++ b/include/a.out.sun4.h @@ -0,0 +1,19 @@ +/* SPARC-specific values for a.out files */ + +#define PAGE_SIZE 0x02000 /* 8K. aka NBPG in <sys/param.h> */ +/* Note that some SPARCs have 4K pages, some 8K, some others. */ +#define SEGMENT_SIZE PAGE_SIZE +#define TEXT_START_ADDR PAGE_SIZE /* Location 0 is not accessible */ + +#define N_BADMAG(x) \ + (N_MAGIC(x) != OMAGIC && N_MAGIC(x) != NMAGIC \ + && N_MAGIC(x) != ZMAGIC) + + +#define N_TXTOFF(x) ( (N_MAGIC((x)) == ZMAGIC) ? 0 : sizeof(struct exec) ) +#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 ) + |