Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
a.out.h File Reference
#include <asm/a.out.h>

Go to the source code of this file.

Data Structures

struct  nlist
 
struct  relocation_info
 

Macros

#define __GNU_EXEC_MACROS__
 
#define N_MAGIC(exec)   ((exec).a_info & 0xffff)
 
#define N_MACHTYPE(exec)   ((enum machine_type)(((exec).a_info >> 16) & 0xff))
 
#define N_FLAGS(exec)   (((exec).a_info >> 24) & 0xff)
 
#define N_SET_INFO(exec, magic, type, flags)
 
#define N_SET_MAGIC(exec, magic)   ((exec).a_info = (((exec).a_info & 0xffff0000) | ((magic) & 0xffff)))
 
#define N_SET_MACHTYPE(exec, machtype)
 
#define N_SET_FLAGS(exec, flags)
 
#define OMAGIC   0407
 
#define NMAGIC   0410
 
#define ZMAGIC   0413
 
#define QMAGIC   0314
 
#define CMAGIC   0421
 
#define N_BADMAG(x)
 
#define _N_HDROFF(x)   (1024 - sizeof (struct exec))
 
#define N_TXTOFF(x)
 
#define N_DATOFF(x)   (N_TXTOFF(x) + (x).a_text)
 
#define N_TRELOFF(x)   (N_DATOFF(x) + (x).a_data)
 
#define N_DRELOFF(x)   (N_TRELOFF(x) + N_TRSIZE(x))
 
#define N_SYMOFF(x)   (N_DRELOFF(x) + N_DRSIZE(x))
 
#define N_STROFF(x)   (N_SYMOFF(x) + N_SYMSIZE(x))
 
#define N_TXTADDR(x)   (N_MAGIC(x) == QMAGIC ? PAGE_SIZE : 0)
 
#define _N_SEGMENT_ROUND(x)   ALIGN(x, SEGMENT_SIZE)
 
#define _N_TXTENDADDR(x)   (N_TXTADDR(x)+(x).a_text)
 
#define N_DATADDR(x)
 
#define N_BSSADDR(x)   (N_DATADDR(x) + (x).a_data)
 
#define N_UNDF   0
 
#define N_ABS   2
 
#define N_TEXT   4
 
#define N_DATA   6
 
#define N_BSS   8
 
#define N_FN   15
 
#define N_EXT   1
 
#define N_TYPE   036
 
#define N_STAB   0340
 
#define N_INDR   0xa
 
#define N_SETA   0x14 /* Absolute set element symbol */
 
#define N_SETT   0x16 /* Text set element symbol */
 
#define N_SETD   0x18 /* Data set element symbol */
 
#define N_SETB   0x1A /* Bss set element symbol */
 
#define N_SETV   0x1C /* Pointer to set vector in data area. */
 

Enumerations

enum  machine_type {
  M_OLDSUN2 = 0, M_68010 = 1, M_68020 = 2, M_SPARC = 3,
  M_386 = 100, M_MIPS1 = 151, M_MIPS2 = 152
}
 

Macro Definition Documentation

#define __GNU_EXEC_MACROS__

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

#define _N_HDROFF (   x)    (1024 - sizeof (struct exec))

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

#define _N_SEGMENT_ROUND (   x)    ALIGN(x, SEGMENT_SIZE)

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

#define _N_TXTENDADDR (   x)    (N_TXTADDR(x)+(x).a_text)

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

#define CMAGIC   0421

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

#define N_ABS   2

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

#define N_BADMAG (   x)
Value:
&& N_MAGIC(x) != NMAGIC \
&& N_MAGIC(x) != ZMAGIC \
&& N_MAGIC(x) != QMAGIC)

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

#define N_BSS   8

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

#define N_BSSADDR (   x)    (N_DATADDR(x) + (x).a_data)

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

#define N_DATA   6

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

#define N_DATADDR (   x)
Value:

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

#define N_DATOFF (   x)    (N_TXTOFF(x) + (x).a_text)

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

#define N_DRELOFF (   x)    (N_TRELOFF(x) + N_TRSIZE(x))

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

#define N_EXT   1

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

#define N_FLAGS (   exec)    (((exec).a_info >> 24) & 0xff)

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

#define N_FN   15

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

#define N_INDR   0xa

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

#define N_MACHTYPE (   exec)    ((enum machine_type)(((exec).a_info >> 16) & 0xff))

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

#define N_MAGIC (   exec)    ((exec).a_info & 0xffff)

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

#define N_SET_FLAGS (   exec,
  flags 
)
Value:
((exec).a_info = \
((exec).a_info&0x00ffffff) | (((flags) & 0xff) << 24))

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

#define N_SET_INFO (   exec,
  magic,
  type,
  flags 
)
Value:
((exec).a_info = ((magic) & 0xffff) \
| (((int)(type) & 0xff) << 16) \
| (((flags) & 0xff) << 24))

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

#define N_SET_MACHTYPE (   exec,
  machtype 
)
Value:
((exec).a_info = \
((exec).a_info&0xff00ffff) | ((((int)(machtype))&0xff) << 16))

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

#define N_SET_MAGIC (   exec,
  magic 
)    ((exec).a_info = (((exec).a_info & 0xffff0000) | ((magic) & 0xffff)))

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

#define N_SETA   0x14 /* Absolute set element symbol */

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

#define N_SETB   0x1A /* Bss set element symbol */

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

#define N_SETD   0x18 /* Data set element symbol */

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

#define N_SETT   0x16 /* Text set element symbol */

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

#define N_SETV   0x1C /* Pointer to set vector in data area. */

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

#define N_STAB   0340

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

#define N_STROFF (   x)    (N_SYMOFF(x) + N_SYMSIZE(x))

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

#define N_SYMOFF (   x)    (N_DRELOFF(x) + N_DRSIZE(x))

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

#define N_TEXT   4

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

#define N_TRELOFF (   x)    (N_DATOFF(x) + (x).a_data)

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

#define N_TXTADDR (   x)    (N_MAGIC(x) == QMAGIC ? PAGE_SIZE : 0)

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

#define N_TXTOFF (   x)
Value:
(N_MAGIC(x) == ZMAGIC ? _N_HDROFF((x)) + sizeof (struct exec) : \
(N_MAGIC(x) == QMAGIC ? 0 : sizeof (struct exec)))

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

#define N_TYPE   036

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

#define N_UNDF   0

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

#define NMAGIC   0410

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

#define OMAGIC   0407

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

#define QMAGIC   0314

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

#define ZMAGIC   0413

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

Enumeration Type Documentation

Enumerator:
M_OLDSUN2 
M_68010 
M_68020 
M_SPARC 
M_386 
M_MIPS1 
M_MIPS2 

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