NEURON
coff.h File Reference

Go to the source code of this file.

Classes

struct  external_filehdr
 
struct  AOUTHDR
 
struct  gnu_aout
 
struct  external_scnhdr
 
struct  external_lineno
 
struct  external_syment
 
union  external_auxent
 
struct  external_reloc
 

Macros

#define F_RELFLG   (0x0001)
 
#define F_EXEC   (0x0002)
 
#define F_LNNO   (0x0004)
 
#define F_LSYMS   (0x0008)
 
#define I386MAGIC   0x14c
 
#define I386AIXMAGIC   0x175
 
#define I386BADMAG(x)   (((x).f_magic!=I386MAGIC) && (x).f_magic!=I386AIXMAGIC)
 
#define FILHDR   struct external_filehdr
 
#define FILHSZ   20
 
#define AOUTSZ   (sizeof(AOUTHDR))
 
#define OMAGIC   0404 /* object files, eg as output */
 
#define ZMAGIC   0413 /* demand load format, eg normal ld output */
 
#define STMAGIC   0401 /* target shlib */
 
#define SHMAGIC   0443 /* host shlib */
 
#define SCNHDR   struct external_scnhdr
 
#define SCNHSZ   40
 
#define _TEXT   ".text"
 
#define _DATA   ".data"
 
#define _BSS   ".bss"
 
#define _COMMENT   ".comment"
 
#define _LIB   ".lib"
 
#define STYP_TEXT   (0x0020) /* section contains text only */
 
#define STYP_DATA   (0x0040) /* section contains data only */
 
#define STYP_BSS   (0x0080) /* section contains bss only */
 
#define LINENO   struct external_lineno
 
#define LINESZ   sizeof(LINENO)
 
#define E_SYMNMLEN   8 /* # characters in a symbol name */
 
#define E_FILNMLEN   14 /* # characters in a file name */
 
#define E_DIMNUM   4 /* # array dimensions in auxiliary entry */
 
#define N_BTMASK   (0xf)
 
#define N_TMASK   (0x30)
 
#define N_BTSHFT   (4)
 
#define N_TSHIFT   (2)
 
#define SYMENT   struct external_syment
 
#define SYMESZ   18
 
#define AUXENT   union external_auxent
 
#define AUXESZ   18
 
#define _ETEXT   "etext"
 
#define N_UNDEF   ((short)0) /* undefined symbol */
 
#define N_ABS   ((short)-1) /* value of symbol is absolute */
 
#define N_DEBUG   ((short)-2) /* debugging symbol -- value is meaningless */
 
#define N_TV   ((short)-3) /* indicates symbol needs preload transfer vector */
 
#define P_TV   ((short)-4) /* indicates symbol needs postload transfer vector*/
 
#define T_NULL   0
 
#define T_VOID   1 /* function argument (only used by compiler) */
 
#define T_CHAR   2 /* character */
 
#define T_SHORT   3 /* short integer */
 
#define T_INT   4 /* integer */
 
#define T_LONG   5 /* long integer */
 
#define T_FLOAT   6 /* floating point */
 
#define T_DOUBLE   7 /* double word */
 
#define T_STRUCT   8 /* structure */
 
#define T_UNION   9 /* union */
 
#define T_ENUM   10 /* enumeration */
 
#define T_MOE   11 /* member of enumeration*/
 
#define T_UCHAR   12 /* unsigned character */
 
#define T_USHORT   13 /* unsigned short */
 
#define T_UINT   14 /* unsigned integer */
 
#define T_ULONG   15 /* unsigned long */
 
#define T_LNGDBL   16 /* long double */
 
#define DT_NON   (0) /* no derived type */
 
#define DT_PTR   (1) /* pointer */
 
#define DT_FCN   (2) /* function */
 
#define DT_ARY   (3) /* array */
 
#define BTYPE(x)   ((x) & N_BTMASK)
 
#define ISPTR(x)   (((x) & N_TMASK) == (DT_PTR << N_BTSHFT))
 
#define ISFCN(x)   (((x) & N_TMASK) == (DT_FCN << N_BTSHFT))
 
#define ISARY(x)   (((x) & N_TMASK) == (DT_ARY << N_BTSHFT))
 
#define ISTAG(x)   ((x)==C_STRTAG||(x)==C_UNTAG||(x)==C_ENTAG)
 
#define DECREF(x)   ((((x)>>N_TSHIFT)&~N_BTMASK)|((x)&N_BTMASK))
 
#define C_EFCN   0xff /* physical end of function */
 
#define C_NULL   0
 
#define C_AUTO   1 /* automatic variable */
 
#define C_EXT   2 /* external symbol */
 
#define C_STAT   3 /* static */
 
#define C_REG   4 /* register variable */
 
#define C_EXTDEF   5 /* external definition */
 
#define C_LABEL   6 /* label */
 
#define C_ULABEL   7 /* undefined label */
 
#define C_MOS   8 /* member of structure */
 
#define C_ARG   9 /* function argument */
 
#define C_STRTAG   10 /* structure tag */
 
#define C_MOU   11 /* member of union */
 
#define C_UNTAG   12 /* union tag */
 
#define C_TPDEF   13 /* type definition */
 
#define C_USTATIC   14 /* undefined static */
 
#define C_ENTAG   15 /* enumeration tag */
 
#define C_MOE   16 /* member of enumeration */
 
#define C_REGPARM   17 /* register parameter */
 
#define C_FIELD   18 /* bit field */
 
#define C_AUTOARG   19 /* auto argument */
 
#define C_LASTENT   20 /* dummy entry (end of block) */
 
#define C_BLOCK   100 /* ".bb" or ".eb" */
 
#define C_FCN   101 /* ".bf" or ".ef" */
 
#define C_EOS   102 /* end of structure */
 
#define C_FILE   103 /* file name */
 
#define C_LINE   104 /* line # reformatted as symbol table entry */
 
#define C_ALIAS   105 /* duplicate tag */
 
#define C_HIDDEN   106 /* ext symbol in dmert public lib */
 
#define RELOC   struct external_reloc
 
#define RELSZ   10
 
#define DEFAULT_DATA_SECTION_ALIGNMENT   4
 
#define DEFAULT_BSS_SECTION_ALIGNMENT   4
 
#define DEFAULT_TEXT_SECTION_ALIGNMENT   4
 
#define DEFAULT_SECTION_ALIGNMENT   4
 

Typedefs

typedef struct gnu_aout GNU_AOUT
 

Macro Definition Documentation

◆ _BSS

#define _BSS   ".bss"

Definition at line 101 of file coff.h.

◆ _COMMENT

#define _COMMENT   ".comment"

Definition at line 102 of file coff.h.

◆ _DATA

#define _DATA   ".data"

Definition at line 100 of file coff.h.

◆ _ETEXT

#define _ETEXT   "etext"

Definition at line 212 of file coff.h.

◆ _LIB

#define _LIB   ".lib"

Definition at line 103 of file coff.h.

◆ _TEXT

#define _TEXT   ".text"

Definition at line 99 of file coff.h.

◆ AOUTSZ

#define AOUTSZ   (sizeof(AOUTHDR))

Definition at line 68 of file coff.h.

◆ AUXENT

#define AUXENT   union external_auxent

Definition at line 207 of file coff.h.

◆ AUXESZ

#define AUXESZ   18

Definition at line 209 of file coff.h.

◆ BTYPE

#define BTYPE (   x)    ((x) & N_BTMASK)

Definition at line 253 of file coff.h.

◆ C_ALIAS

#define C_ALIAS   105 /* duplicate tag */

Definition at line 291 of file coff.h.

◆ C_ARG

#define C_ARG   9 /* function argument */

Definition at line 274 of file coff.h.

◆ C_AUTO

#define C_AUTO   1 /* automatic variable */

Definition at line 266 of file coff.h.

◆ C_AUTOARG

#define C_AUTOARG   19 /* auto argument */

Definition at line 284 of file coff.h.

◆ C_BLOCK

#define C_BLOCK   100 /* ".bb" or ".eb" */

Definition at line 286 of file coff.h.

◆ C_EFCN

#define C_EFCN   0xff /* physical end of function */

Definition at line 264 of file coff.h.

◆ C_ENTAG

#define C_ENTAG   15 /* enumeration tag */

Definition at line 280 of file coff.h.

◆ C_EOS

#define C_EOS   102 /* end of structure */

Definition at line 288 of file coff.h.

◆ C_EXT

#define C_EXT   2 /* external symbol */

Definition at line 267 of file coff.h.

◆ C_EXTDEF

#define C_EXTDEF   5 /* external definition */

Definition at line 270 of file coff.h.

◆ C_FCN

#define C_FCN   101 /* ".bf" or ".ef" */

Definition at line 287 of file coff.h.

◆ C_FIELD

#define C_FIELD   18 /* bit field */

Definition at line 283 of file coff.h.

◆ C_FILE

#define C_FILE   103 /* file name */

Definition at line 289 of file coff.h.

◆ C_HIDDEN

#define C_HIDDEN   106 /* ext symbol in dmert public lib */

Definition at line 292 of file coff.h.

◆ C_LABEL

#define C_LABEL   6 /* label */

Definition at line 271 of file coff.h.

◆ C_LASTENT

#define C_LASTENT   20 /* dummy entry (end of block) */

Definition at line 285 of file coff.h.

◆ C_LINE

#define C_LINE   104 /* line # reformatted as symbol table entry */

Definition at line 290 of file coff.h.

◆ C_MOE

#define C_MOE   16 /* member of enumeration */

Definition at line 281 of file coff.h.

◆ C_MOS

#define C_MOS   8 /* member of structure */

Definition at line 273 of file coff.h.

◆ C_MOU

#define C_MOU   11 /* member of union */

Definition at line 276 of file coff.h.

◆ C_NULL

#define C_NULL   0

Definition at line 265 of file coff.h.

◆ C_REG

#define C_REG   4 /* register variable */

Definition at line 269 of file coff.h.

◆ C_REGPARM

#define C_REGPARM   17 /* register parameter */

Definition at line 282 of file coff.h.

◆ C_STAT

#define C_STAT   3 /* static */

Definition at line 268 of file coff.h.

◆ C_STRTAG

#define C_STRTAG   10 /* structure tag */

Definition at line 275 of file coff.h.

◆ C_TPDEF

#define C_TPDEF   13 /* type definition */

Definition at line 278 of file coff.h.

◆ C_ULABEL

#define C_ULABEL   7 /* undefined label */

Definition at line 272 of file coff.h.

◆ C_UNTAG

#define C_UNTAG   12 /* union tag */

Definition at line 277 of file coff.h.

◆ C_USTATIC

#define C_USTATIC   14 /* undefined static */

Definition at line 279 of file coff.h.

◆ DECREF

#define DECREF (   x)    ((((x)>>N_TSHIFT)&~N_BTMASK)|((x)&N_BTMASK))

Definition at line 259 of file coff.h.

◆ DEFAULT_BSS_SECTION_ALIGNMENT

#define DEFAULT_BSS_SECTION_ALIGNMENT   4

Definition at line 310 of file coff.h.

◆ DEFAULT_DATA_SECTION_ALIGNMENT

#define DEFAULT_DATA_SECTION_ALIGNMENT   4

Definition at line 309 of file coff.h.

◆ DEFAULT_SECTION_ALIGNMENT

#define DEFAULT_SECTION_ALIGNMENT   4

Definition at line 313 of file coff.h.

◆ DEFAULT_TEXT_SECTION_ALIGNMENT

#define DEFAULT_TEXT_SECTION_ALIGNMENT   4

Definition at line 311 of file coff.h.

◆ DT_ARY

#define DT_ARY   (3) /* array */

Definition at line 251 of file coff.h.

◆ DT_FCN

#define DT_FCN   (2) /* function */

Definition at line 250 of file coff.h.

◆ DT_NON

#define DT_NON   (0) /* no derived type */

Definition at line 248 of file coff.h.

◆ DT_PTR

#define DT_PTR   (1) /* pointer */

Definition at line 249 of file coff.h.

◆ E_DIMNUM

#define E_DIMNUM   4 /* # array dimensions in auxiliary entry */

Definition at line 136 of file coff.h.

◆ E_FILNMLEN

#define E_FILNMLEN   14 /* # characters in a file name */

Definition at line 135 of file coff.h.

◆ E_SYMNMLEN

#define E_SYMNMLEN   8 /* # characters in a symbol name */

Definition at line 134 of file coff.h.

◆ F_EXEC

#define F_EXEC   (0x0002)

Definition at line 25 of file coff.h.

◆ F_LNNO

#define F_LNNO   (0x0004)

Definition at line 26 of file coff.h.

◆ F_LSYMS

#define F_LSYMS   (0x0008)

Definition at line 27 of file coff.h.

◆ F_RELFLG

#define F_RELFLG   (0x0001)

Definition at line 24 of file coff.h.

◆ FILHDR

#define FILHDR   struct external_filehdr

Definition at line 36 of file coff.h.

◆ FILHSZ

#define FILHSZ   20

Definition at line 38 of file coff.h.

◆ I386AIXMAGIC

#define I386AIXMAGIC   0x175

Definition at line 32 of file coff.h.

◆ I386BADMAG

#define I386BADMAG (   x)    (((x).f_magic!=I386MAGIC) && (x).f_magic!=I386AIXMAGIC)

Definition at line 33 of file coff.h.

◆ I386MAGIC

#define I386MAGIC   0x14c

Definition at line 31 of file coff.h.

◆ ISARY

#define ISARY (   x)    (((x) & N_TMASK) == (DT_ARY << N_BTSHFT))

Definition at line 257 of file coff.h.

◆ ISFCN

#define ISFCN (   x)    (((x) & N_TMASK) == (DT_FCN << N_BTSHFT))

Definition at line 256 of file coff.h.

◆ ISPTR

#define ISPTR (   x)    (((x) & N_TMASK) == (DT_PTR << N_BTSHFT))

Definition at line 255 of file coff.h.

◆ ISTAG

#define ISTAG (   x)    ((x)==C_STRTAG||(x)==C_UNTAG||(x)==C_ENTAG)

Definition at line 258 of file coff.h.

◆ LINENO

#define LINENO   struct external_lineno

Definition at line 128 of file coff.h.

◆ LINESZ

#define LINESZ   sizeof(LINENO)

Definition at line 129 of file coff.h.

◆ N_ABS

#define N_ABS   ((short)-1) /* value of symbol is absolute */

Definition at line 219 of file coff.h.

◆ N_BTMASK

#define N_BTMASK   (0xf)

Definition at line 154 of file coff.h.

◆ N_BTSHFT

#define N_BTSHFT   (4)

Definition at line 156 of file coff.h.

◆ N_DEBUG

#define N_DEBUG   ((short)-2) /* debugging symbol -- value is meaningless */

Definition at line 220 of file coff.h.

◆ N_TMASK

#define N_TMASK   (0x30)

Definition at line 155 of file coff.h.

◆ N_TSHIFT

#define N_TSHIFT   (2)

Definition at line 157 of file coff.h.

◆ N_TV

#define N_TV   ((short)-3) /* indicates symbol needs preload transfer vector */

Definition at line 221 of file coff.h.

◆ N_UNDEF

#define N_UNDEF   ((short)0) /* undefined symbol */

Definition at line 218 of file coff.h.

◆ OMAGIC

#define OMAGIC   0404 /* object files, eg as output */

Definition at line 70 of file coff.h.

◆ P_TV

#define P_TV   ((short)-4) /* indicates symbol needs postload transfer vector*/

Definition at line 222 of file coff.h.

◆ RELOC

#define RELOC   struct external_reloc

Definition at line 305 of file coff.h.

◆ RELSZ

#define RELSZ   10

Definition at line 307 of file coff.h.

◆ SCNHDR

#define SCNHDR   struct external_scnhdr

Definition at line 92 of file coff.h.

◆ SCNHSZ

#define SCNHSZ   40

Definition at line 94 of file coff.h.

◆ SHMAGIC

#define SHMAGIC   0443 /* host shlib */

Definition at line 73 of file coff.h.

◆ STMAGIC

#define STMAGIC   0401 /* target shlib */

Definition at line 72 of file coff.h.

◆ STYP_BSS

#define STYP_BSS   (0x0080) /* section contains bss only */

Definition at line 110 of file coff.h.

◆ STYP_DATA

#define STYP_DATA   (0x0040) /* section contains data only */

Definition at line 109 of file coff.h.

◆ STYP_TEXT

#define STYP_TEXT   (0x0020) /* section contains text only */

Definition at line 108 of file coff.h.

◆ SYMENT

#define SYMENT   struct external_syment

Definition at line 204 of file coff.h.

◆ SYMESZ

#define SYMESZ   18

Definition at line 206 of file coff.h.

◆ T_CHAR

#define T_CHAR   2 /* character */

Definition at line 229 of file coff.h.

◆ T_DOUBLE

#define T_DOUBLE   7 /* double word */

Definition at line 234 of file coff.h.

◆ T_ENUM

#define T_ENUM   10 /* enumeration */

Definition at line 237 of file coff.h.

◆ T_FLOAT

#define T_FLOAT   6 /* floating point */

Definition at line 233 of file coff.h.

◆ T_INT

#define T_INT   4 /* integer */

Definition at line 231 of file coff.h.

◆ T_LNGDBL

#define T_LNGDBL   16 /* long double */

Definition at line 243 of file coff.h.

◆ T_LONG

#define T_LONG   5 /* long integer */

Definition at line 232 of file coff.h.

◆ T_MOE

#define T_MOE   11 /* member of enumeration*/

Definition at line 238 of file coff.h.

◆ T_NULL

#define T_NULL   0

Definition at line 227 of file coff.h.

◆ T_SHORT

#define T_SHORT   3 /* short integer */

Definition at line 230 of file coff.h.

◆ T_STRUCT

#define T_STRUCT   8 /* structure */

Definition at line 235 of file coff.h.

◆ T_UCHAR

#define T_UCHAR   12 /* unsigned character */

Definition at line 239 of file coff.h.

◆ T_UINT

#define T_UINT   14 /* unsigned integer */

Definition at line 241 of file coff.h.

◆ T_ULONG

#define T_ULONG   15 /* unsigned long */

Definition at line 242 of file coff.h.

◆ T_UNION

#define T_UNION   9 /* union */

Definition at line 236 of file coff.h.

◆ T_USHORT

#define T_USHORT   13 /* unsigned short */

Definition at line 240 of file coff.h.

◆ T_VOID

#define T_VOID   1 /* function argument (only used by compiler) */

Definition at line 228 of file coff.h.

◆ ZMAGIC

#define ZMAGIC   0413 /* demand load format, eg normal ld output */

Definition at line 71 of file coff.h.

Typedef Documentation

◆ GNU_AOUT

typedef struct gnu_aout GNU_AOUT