QDNix
Quick’n’dirty *NIX
a.out.h
1 #ifndef _AOUT_H
2 # define _AOUT_H 1
3 
4 # define OMAGIC 0407
5 # define NMAGIC 0410
6 # define ZMAGIC 0413
7 
8 # define N_BAGMAG(x) \
9  (x.a_magic != OMAGIC && x.a_magic != NMAGIC && x.a_magic != ZMAGIC)
10 
11 struct exec {
12  int a_magic;
13  unsigned a_text;
14  unsigned a_data;
15  unsigned a_bss;
16  unsigned a_syms;
17  unsigned a_entry;
18  unsigned a_trsize;
19  unsigned a_drsize;
20 };
21 
22 struct nlist {
23  union {
24  char const *n_name;
25  long n_strx;
26  } n_un;
27  unsigned char n_type;
28  char n_other;
29  short n_desc;
30  unsigned n_value;
31 };
32 
34  int r_address;
35  unsigned r_symbolnum:24,
36  r_pcrel:1,
37  r_length:2,
38  r_extern:1,
39  pad:4;
40 };
41 
42 #endif /* !_AOUT_H */
Definition: a.out.h:11
Definition: a.out.h:22