aboutsummaryrefslogtreecommitdiff
path: root/include/a.out.sun4.h
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1991-11-20 02:48:13 +0000
committerPer Bothner <per@bothner.com>1991-11-20 02:48:13 +0000
commit8a400a1892105cb25baeb76fc292cf777cd58185 (patch)
treed31d51116da6005a4fc884a2c5935b57fb119170 /include/a.out.sun4.h
parent0db97eedc1c069234da49f9780ca55ced173acd4 (diff)
downloadgdb-8a400a1892105cb25baeb76fc292cf777cd58185.zip
gdb-8a400a1892105cb25baeb76fc292cf777cd58185.tar.gz
gdb-8a400a1892105cb25baeb76fc292cf777cd58185.tar.bz2
Some cleanups of N_TXTADDR and N_TXTOFF.
Diffstat (limited to 'include/a.out.sun4.h')
-rwxr-xr-xinclude/a.out.sun4.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/a.out.sun4.h b/include/a.out.sun4.h
index 8d938b0..5ad4845 100755
--- a/include/a.out.sun4.h
+++ b/include/a.out.sun4.h
@@ -7,6 +7,7 @@
#define SEG_SIZE_SUN3 0x20000 /* Resolution of r/w protection hw */
#define TEXT_START_ADDR PAGE_SIZE /* Location 0 is not accessible */
+#define N_HEADER_IN_TEXT(x) 1
/* Non-default definitions of the accessor macros... */
@@ -16,11 +17,6 @@
N_MACHTYPE(x) == M_68020? SEG_SIZE_SUN3: \
/* Guess? */ PAGE_SIZE)
-/* Offset in a.out file of the text section. For ZMAGIC, the text section
- actually includes the a.out header. */
-
-#define N_TXTOFF(x) ( (N_MAGIC((x)) == ZMAGIC) ? 0 : EXEC_BYTES_SIZE)
-
/* Virtual Address of text segment from the a.out file. For OMAGIC,
(almost always "unlinked .o's" these days), should be zero.
Sun added a kludge so that shared libraries linked ZMAGIC get
@@ -31,4 +27,4 @@
#define N_TXTADDR(x) \
(N_MAGIC(x)==OMAGIC? 0 \
: (N_MAGIC(x) == ZMAGIC && (x).a_entry < TEXT_START_ADDR)? 0 \
- : TEXT_START_ADDR)
+ : TEXT_START_ADDR+EXEC_BYTES_SIZE)