root/include/asm-alpha/a.out.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef __ALPHA_A_OUT_H__
   2 #define __ALPHA_A_OUT_H__
   3 
   4 /* OSF/1 pseudo-a.out header */
   5 struct exec
   6 {
   7         /* OSF/1 "file" header */
   8         unsigned short f_magic, f_nscns;
   9         unsigned int f_timdat;
  10         unsigned long f_symptr;
  11         unsigned int f_nsyms;
  12         unsigned short f_opthdr, f_flags;
  13         /* followed by a more normal "a.out" header */
  14         unsigned long a_info;           /* after that it looks quite normal.. */
  15         unsigned long a_text;
  16         unsigned long a_data;
  17         unsigned long a_bss;
  18         unsigned long a_entry;
  19         unsigned long a_textstart;      /* with a few additions that actually make sense */
  20         unsigned long a_datastart;
  21         unsigned long a_bssstart;
  22         unsigned int  a_gprmask, a_fprmask;     /* but what are these? */
  23         unsigned long a_gpvalue;
  24 };
  25 #define N_TXTADDR(x) ((x).a_textstart)
  26 #define N_DATADDR(x) ((x).a_datastart)
  27 #define N_BSSADDR(x) ((x).a_bssstart)
  28 #define N_DRSIZE(x) 0
  29 #define N_TRSIZE(x) 0
  30 #define N_SYMSIZE(x) 0
  31 
  32 #define SCNHSZ          64              /* XXX should be sizeof(scnhdr) */
  33 #define SCNROUND        16
  34 
  35 #define N_TXTOFF(x) \
  36   ((long) N_MAGIC(x) == ZMAGIC ? 0 : \
  37    (sizeof(struct exec) + (x).f_nscns*SCNHSZ + SCNROUND - 1) & ~(SCNROUND - 1))
  38 
  39 #ifdef __KERNEL__
  40 
  41 #define STACK_TOP (0x00120000000UL)
  42 
  43 #endif
  44 
  45 #endif /* __A_OUT_GNU_H__ */

/* [previous][next][first][last][top][bottom][index][help] */