exec_bout.h File Reference

Back to the index.

Classes | Macros
exec_bout.h File Reference

Go to the source code of this file.

Classes

struct  bout_exec
 
struct  nlist
 
struct  relocation_info
 

Macros

#define BOUT_BMAGIC   0415
 
#define BOUT_OMAGIC   0407 /* old impure format */
 
#define BOUT_NMAGIC   0410 /* read-only text */
 
#define BOUT_ZMAGIC   0413 /* demand load format */
 
#define N_MAGIC(x)   ((x).a_magic)
 
#define N_BADMAG(x)   (((x).a_magic)!=BOUT_BMAGIC)
 
#define N_TXTOFF(x)   ( sizeof(struct exec) )
 
#define N_DATOFF(x)   ( N_TXTOFF(x) + (x).a_text )
 
#define N_TROFF(x)   ( N_DATOFF(x) + (x).a_data )
 
#define N_DROFF(x)   ( N_TROFF(x) + (x).a_trsize )
 
#define N_SYMOFF(x)   ( N_DROFF(x) + (x).a_drsize )
 
#define N_STROFF(x)   ( N_SYMOFF(x) + (x).a_syms )
 
#define N_CCINFO   ( 0x17 )
 
#define N_HAS_CCINFO(x)   (((x).a_ccinfo)==N_CCINFO)
 
#define N_UNDF   0 /* Undefined symbol */
 
#define N_ABS   2 /* Absolute symbol */
 
#define N_TEXT   4 /* Text symbol */
 
#define N_DATA   6 /* Data symbol */
 
#define N_BSS   8 /* BSS symbol */
 
#define N_FN   31 /* Filename symbol */
 
#define N_EXT   1 /* External symbol (OR'd in with one of above) */
 
#define N_TYPE   036 /* Mask for all the type bits */
 
#define N_STAB   0340 /* Mask for all bits used for SDB entries */
 
#define N_ORDINARY   ((unsigned) 0)
 
#define N_BALNAME   ((unsigned) 0xfe)
 
#define N_CALLNAME   ((unsigned) 0xff)
 
#define MASK(V)
 
#define GET_UBITS(V)   ((unsigned) (V & MASK( V )))
 
#define IS_ORDINARY(x)   (GET_UBITS(x) == N_ORDINARY)
 
#define IS_CALLNAME(x)   (GET_UBITS(x) == N_CALLNAME)
 
#define IS_BALNAME(x)   (GET_UBITS(x) == N_BALNAME)
 
#define IS_SYSPROCIDX(x)
 

Macro Definition Documentation

◆ BOUT_BMAGIC

#define BOUT_BMAGIC   0415

Definition at line 70 of file exec_bout.h.

◆ BOUT_NMAGIC

#define BOUT_NMAGIC   0410 /* read-only text */

Definition at line 75 of file exec_bout.h.

◆ BOUT_OMAGIC

#define BOUT_OMAGIC   0407 /* old impure format */

Definition at line 74 of file exec_bout.h.

◆ BOUT_ZMAGIC

#define BOUT_ZMAGIC   0413 /* demand load format */

Definition at line 76 of file exec_bout.h.

◆ GET_UBITS

#define GET_UBITS (   V)    ((unsigned) (V & MASK( V )))

Definition at line 198 of file exec_bout.h.

◆ IS_BALNAME

#define IS_BALNAME (   x)    (GET_UBITS(x) == N_BALNAME)

Definition at line 202 of file exec_bout.h.

◆ IS_CALLNAME

#define IS_CALLNAME (   x)    (GET_UBITS(x) == N_CALLNAME)

Definition at line 201 of file exec_bout.h.

◆ IS_ORDINARY

#define IS_ORDINARY (   x)    (GET_UBITS(x) == N_ORDINARY)

Definition at line 200 of file exec_bout.h.

◆ IS_SYSPROCIDX

#define IS_SYSPROCIDX (   x)
Value:
GET_UBITS(x) < N_BALNAME)
#define GET_UBITS(V)
Definition: exec_bout.h:198
#define N_ORDINARY
Definition: exec_bout.h:188
#define N_BALNAME
Definition: exec_bout.h:190

Definition at line 203 of file exec_bout.h.

◆ MASK

#define MASK (   V)
Value:
((sizeof(V) == 1) ? 0x000000ff :\
((sizeof(V) == 2) ? 0x0000ffff :\
0x0000ffff))

Definition at line 193 of file exec_bout.h.

◆ N_ABS

#define N_ABS   2 /* Absolute symbol */

Definition at line 147 of file exec_bout.h.

◆ N_BADMAG

#define N_BADMAG (   x)    (((x).a_magic)!=BOUT_BMAGIC)

Definition at line 119 of file exec_bout.h.

◆ N_BALNAME

#define N_BALNAME   ((unsigned) 0xfe)

Definition at line 190 of file exec_bout.h.

◆ N_BSS

#define N_BSS   8 /* BSS symbol */

Definition at line 150 of file exec_bout.h.

◆ N_CALLNAME

#define N_CALLNAME   ((unsigned) 0xff)

Definition at line 191 of file exec_bout.h.

◆ N_CCINFO

#define N_CCINFO   ( 0x17 )

Definition at line 126 of file exec_bout.h.

◆ N_DATA

#define N_DATA   6 /* Data symbol */

Definition at line 149 of file exec_bout.h.

◆ N_DATOFF

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

Definition at line 121 of file exec_bout.h.

◆ N_DROFF

#define N_DROFF (   x)    ( N_TROFF(x) + (x).a_trsize )

Definition at line 123 of file exec_bout.h.

◆ N_EXT

#define N_EXT   1 /* External symbol (OR'd in with one of above) */

Definition at line 153 of file exec_bout.h.

◆ N_FN

#define N_FN   31 /* Filename symbol */

Definition at line 151 of file exec_bout.h.

◆ N_HAS_CCINFO

#define N_HAS_CCINFO (   x)    (((x).a_ccinfo)==N_CCINFO)

Definition at line 127 of file exec_bout.h.

◆ N_MAGIC

#define N_MAGIC (   x)    ((x).a_magic)

Definition at line 118 of file exec_bout.h.

◆ N_ORDINARY

#define N_ORDINARY   ((unsigned) 0)

Definition at line 188 of file exec_bout.h.

◆ N_STAB

#define N_STAB   0340 /* Mask for all bits used for SDB entries */

Definition at line 155 of file exec_bout.h.

◆ N_STROFF

#define N_STROFF (   x)    ( N_SYMOFF(x) + (x).a_syms )

Definition at line 125 of file exec_bout.h.

◆ N_SYMOFF

#define N_SYMOFF (   x)    ( N_DROFF(x) + (x).a_drsize )

Definition at line 124 of file exec_bout.h.

◆ N_TEXT

#define N_TEXT   4 /* Text symbol */

Definition at line 148 of file exec_bout.h.

◆ N_TROFF

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

Definition at line 122 of file exec_bout.h.

◆ N_TXTOFF

#define N_TXTOFF (   x)    ( sizeof(struct exec) )

Definition at line 120 of file exec_bout.h.

◆ N_TYPE

#define N_TYPE   036 /* Mask for all the type bits */

Definition at line 154 of file exec_bout.h.

◆ N_UNDF

#define N_UNDF   0 /* Undefined symbol */

Definition at line 146 of file exec_bout.h.


Generated on Sun Sep 30 2018 16:05:18 for GXemul by doxygen 1.8.13