]> Git Repo - binutils.git/blobdiff - include/a.out.sun4.h
Fluff removal.
[binutils.git] / include / a.out.sun4.h
index 4ce569da97182f03a73449efdf16caba46db35c6..5ad4845e0d01b3d3ff58fe74719b8ab91d0ed92b 100755 (executable)
@@ -2,15 +2,20 @@
 
 #define PAGE_SIZE      0x2000          /* 8K.  aka NBPG in <sys/param.h> */
 /* Note that some SPARCs have 4K pages, some 8K, some others.  */
-#define SEGMENT_SIZE   PAGE_SIZE
+
+#define SEG_SIZE_SPARC PAGE_SIZE
+#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... */
 
-/* Offset in a.out file of the text section.  For ZMAGIC, the text section
-   actually includes the a.out header.  */
+/* Segment size varies on Sun-3 versus Sun-4.  */
 
-#define N_TXTOFF(x)    ( (N_MAGIC((x)) == ZMAGIC) ? 0 : EXEC_BYTES_SIZE)
+#define N_SEGSIZE(x)   (N_MACHTYPE(x) == M_SPARC?      SEG_SIZE_SPARC: \
+                        N_MACHTYPE(x) == M_68020?      SEG_SIZE_SUN3:  \
+                       /* Guess? */                    PAGE_SIZE)
 
 /* Virtual Address of text segment from the a.out file.  For OMAGIC,
    (almost always "unlinked .o's" these days), should be zero.
@@ -22,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)
This page took 0.022153 seconds and 4 git commands to generate.