a.out.h File Reference

#include <ansi.h>

Include dependency graph for a.out.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  exec
struct  reloc
struct  nlist

Defines

#define A_MAGIC0   (unsigned char) 0x01
#define A_MAGIC1   (unsigned char) 0x03
#define BADMAG(X)   ((X).a_magic[0] != A_MAGIC0 ||(X).a_magic[1] != A_MAGIC1)
#define A_NONE   0x00
#define A_I8086   0x04
#define A_M68K   0x0B
#define A_NS16K   0x0C
#define A_I80386   0x10
#define A_SPARC   0x17
#define A_BLR(cputype)   ((cputype&0x01)!=0)
#define A_WLR(cputype)   ((cputype&0x02)!=0)
#define A_UZP   0x01
#define A_PAL   0x02
#define A_NSYM   0x04
#define A_IMG   0x08
#define A_EXEC   0x10
#define A_SEP   0x20
#define A_PURE   0x40 /* pure text */
#define A_TOVLY   0x80 /* text overlay */
#define A_MINHDR   32
#define A_TEXTPOS(X)   ((long)(X).a_hdrlen)
#define A_DATAPOS(X)   (A_TEXTPOS(X) + (X).a_text)
#define A_HASRELS(X)   ((X).a_hdrlen > (unsigned char) A_MINHDR)
#define A_HASEXT(X)   ((X).a_hdrlen > (unsigned char) (A_MINHDR + 8))
#define A_HASLNS(X)   ((X).a_hdrlen > (unsigned char) (A_MINHDR + 16))
#define A_HASTOFF(X)   ((X).a_hdrlen > (unsigned char) (A_MINHDR + 24))
#define A_TRELPOS(X)   (A_DATAPOS(X) + (X).a_data)
#define A_DRELPOS(X)   (A_TRELPOS(X) + (X).a_trsize)
#define A_SYMPOS(X)
#define R_ABBS   0
#define R_RELLBYTE   2
#define R_PCRBYTE   3
#define R_RELWORD   4
#define R_PCRWORD   5
#define R_RELLONG   6
#define R_PCRLONG   7
#define R_REL3BYTE   8
#define R_KBRANCHE   9
#define S_ABS   ((unsigned short)-1)
#define S_TEXT   ((unsigned short)-2)
#define S_DATA   ((unsigned short)-3)
#define S_BSS   ((unsigned short)-4)
#define N_SECT   07
#define N_UNDF   00
#define N_ABS   01
#define N_TEXT   02
#define N_DATA   03
#define N_BSS   04
#define N_COMM   05
#define N_CLASS   0370
#define C_NULL
#define C_EXT   0020
#define C_STAT   0030

Functions

 _PROTOTYPE (int nlist,(char *_file, struct nlist *_nl))


Define Documentation

#define A_BLR cputype   )     ((cputype&0x01)!=0)
 

Definition at line 39 of file a.out.h.

#define A_DATAPOS X   )     (A_TEXTPOS(X) + (X).a_text)
 

Definition at line 55 of file a.out.h.

#define A_DRELPOS X   )     (A_TRELPOS(X) + (X).a_trsize)
 

Definition at line 61 of file a.out.h.

#define A_EXEC   0x10
 

Definition at line 47 of file a.out.h.

Referenced by check_exec(), distext(), and read_header().

#define A_HASEXT X   )     ((X).a_hdrlen > (unsigned char) (A_MINHDR + 8))
 

Definition at line 57 of file a.out.h.

#define A_HASLNS X   )     ((X).a_hdrlen > (unsigned char) (A_MINHDR + 16))
 

Definition at line 58 of file a.out.h.

#define A_HASRELS X   )     ((X).a_hdrlen > (unsigned char) A_MINHDR)
 

Definition at line 56 of file a.out.h.

#define A_HASTOFF X   )     ((X).a_hdrlen > (unsigned char) (A_MINHDR + 24))
 

Definition at line 59 of file a.out.h.

#define A_I80386   0x10
 

Definition at line 36 of file a.out.h.

Referenced by check_exec(), main(), and read_header().

#define A_I8086   0x04
 

Definition at line 33 of file a.out.h.

Referenced by check_exec(), installboot(), main(), read_header(), and setstack().

#define A_IMG   0x08
 

Definition at line 46 of file a.out.h.

Referenced by main().

#define A_M68K   0x0B
 

Definition at line 34 of file a.out.h.

Referenced by check_exec(), and main().

#define A_MAGIC0   (unsigned char) 0x01
 

Definition at line 27 of file a.out.h.

Referenced by check_exec(), and main().

#define A_MAGIC1   (unsigned char) 0x03
 

Definition at line 28 of file a.out.h.

Referenced by check_exec(), and main().

#define A_MINHDR   32
 

Definition at line 53 of file a.out.h.

Referenced by copylink(), exec_image(), installboot(), main(), read_header(), and strip().

#define A_NONE   0x00
 

Definition at line 32 of file a.out.h.

#define A_NS16K   0x0C
 

Definition at line 35 of file a.out.h.

#define A_NSYM   0x04
 

Definition at line 45 of file a.out.h.

Referenced by copylink(), make_image(), and read_header().

#define A_PAL   0x02
 

Definition at line 44 of file a.out.h.

Referenced by extract_image(), get_clickshift(), make_image(), proc_size(), and setstack().

#define A_PURE   0x40 /* pure text */
 

Definition at line 49 of file a.out.h.

#define A_SEP   0x20
 

Definition at line 48 of file a.out.h.

Referenced by check_exec(), disbss(), disdata(), distext(), extract_image(), lookup(), main(), make_image(), proc_size(), read_header(), setstack(), and size().

#define A_SPARC   0x17
 

Definition at line 37 of file a.out.h.

Referenced by main().

#define A_SYMPOS X   ) 
 

Value:

(A_TRELPOS(X) + (A_HASRELS(X) ? \
                        ((X).a_trsize + (X).a_drsize) : 0))

Definition at line 62 of file a.out.h.

Referenced by nlist(), read_header(), and syminit().

#define A_TEXTPOS X   )     ((long)(X).a_hdrlen)
 

Definition at line 54 of file a.out.h.

#define A_TOVLY   0x80 /* text overlay */
 

Definition at line 50 of file a.out.h.

#define A_TRELPOS X   )     (A_DATAPOS(X) + (X).a_data)
 

Definition at line 60 of file a.out.h.

#define A_UZP   0x01
 

Definition at line 43 of file a.out.h.

#define A_WLR cputype   )     ((cputype&0x02)!=0)
 

Definition at line 40 of file a.out.h.

#define BADMAG X   )     ((X).a_magic[0] != A_MAGIC0 ||(X).a_magic[1] != A_MAGIC1)
 

Definition at line 29 of file a.out.h.

Referenced by copylink(), installboot(), main(), nlist(), read_header(), read_symbol(), and size().

#define C_EXT   0020
 

Definition at line 108 of file a.out.h.

Referenced by findsname(), findsval(), listsym(), nm_print(), and prolog().

#define C_NULL
 

Definition at line 107 of file a.out.h.

#define C_STAT   0030
 

Definition at line 109 of file a.out.h.

#define N_ABS   01
 

Definition at line 99 of file a.out.h.

#define N_BSS   04
 

Definition at line 102 of file a.out.h.

#define N_CLASS   0370
 

Definition at line 106 of file a.out.h.

Referenced by findsname(), findsval(), listsym(), nm_print(), and prolog().

#define N_COMM   05
 

Definition at line 103 of file a.out.h.

Referenced by prolog().

#define N_DATA   03
 

Definition at line 101 of file a.out.h.

#define N_SECT   07
 

Definition at line 97 of file a.out.h.

Referenced by findsname(), findsval(), getlab(), listsym(), lookup(), nm_print(), nm_sort(), and prolog().

#define N_TEXT   02
 

Definition at line 100 of file a.out.h.

#define N_UNDF   00
 

Definition at line 98 of file a.out.h.

#define R_ABBS   0
 

Definition at line 72 of file a.out.h.

#define R_KBRANCHE   9
 

Definition at line 80 of file a.out.h.

#define R_PCRBYTE   3
 

Definition at line 74 of file a.out.h.

#define R_PCRLONG   7
 

Definition at line 78 of file a.out.h.

#define R_PCRWORD   5
 

Definition at line 76 of file a.out.h.

#define R_REL3BYTE   8
 

Definition at line 79 of file a.out.h.

#define R_RELLBYTE   2
 

Definition at line 73 of file a.out.h.

#define R_RELLONG   6
 

Definition at line 77 of file a.out.h.

#define R_RELWORD   4
 

Definition at line 75 of file a.out.h.

#define S_ABS   ((unsigned short)-1)
 

Definition at line 83 of file a.out.h.

#define S_BSS   ((unsigned short)-4)
 

Definition at line 86 of file a.out.h.

Referenced by lookext().

#define S_DATA   ((unsigned short)-3)
 

Definition at line 85 of file a.out.h.

#define S_TEXT   ((unsigned short)-2)
 

Definition at line 84 of file a.out.h.


Function Documentation

_PROTOTYPE int  nlist,
(char *_file, struct nlist *_nl) 
 


Generated on Fri Apr 14 23:05:19 2006 for minix by  doxygen 1.4.6