Line 146... |
Line 146... |
#define COFF_JMAGIC 0407 /* dirty text and data image, can't share */
|
#define COFF_JMAGIC 0407 /* dirty text and data image, can't share */
|
#define COFF_DMAGIC 0410 /* dirty text segment, data aligned */
|
#define COFF_DMAGIC 0410 /* dirty text segment, data aligned */
|
#define COFF_ZMAGIC 0413 /* The proper magic number for executables */
|
#define COFF_ZMAGIC 0413 /* The proper magic number for executables */
|
#define COFF_SHMAGIC 0443 /* shared library header */
|
#define COFF_SHMAGIC 0443 /* shared library header */
|
|
|
|
/********************** STORAGE CLASSES **********************/
|
|
|
|
/* This used to be defined as -1, but now n_sclass is unsigned. */
|
|
#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 C_WEAKEXT 127 /* weak symbol -- GNU extension */
|
|
|
|
/* New storage classes for TI COFF */
|
|
#define C_UEXT 19 /* Tentative external definition */
|
|
#define C_STATLAB 20 /* Static load time label */
|
|
#define C_EXTLAB 21 /* External load time label */
|
|
#define C_SYSTEM 23 /* System Wide variable */
|
|
|
|
/* New storage classes for WINDOWS_NT */
|
|
#define C_SECTION 104 /* section name */
|
|
#define C_NT_WEAK 105 /* weak external */
|
|
|
|
/* New storage classes for 80960 */
|
|
|
|
/* C_LEAFPROC is obsolete. Use C_LEAFEXT or C_LEAFSTAT */
|
|
#define C_LEAFPROC 108 /* Leaf procedure, "call" via BAL */
|
|
|
|
#define C_SCALL 107 /* Procedure reachable via system call */
|
|
#define C_LEAFEXT 108 /* External leaf */
|
|
#define C_LEAFSTAT 113 /* Static leaf */
|
|
#define C_OPTVAR 109 /* Optimized variable */
|
|
#define C_DEFINE 110 /* Preprocessor #define */
|
|
#define C_PRAGMA 111 /* Advice to compiler or linker */
|
|
#define C_SEGMENT 112 /* 80960 segment name */
|
|
|
|
/* Storage classes for m88k */
|
|
#define C_SHADOW 107 /* shadow symbol */
|
|
#define C_VERSION 108 /* coff version symbol */
|
|
|
|
/* New storage classes for RS/6000 */
|
|
#define C_HIDEXT 107 /* Un-named external symbol */
|
|
#define C_BINCL 108 /* Marks beginning of include file */
|
|
#define C_EINCL 109 /* Marks ending of include file */
|
|
|
|
/* storage classes for stab symbols for RS/6000 */
|
|
#define C_GSYM (0x80)
|
|
#define C_LSYM (0x81)
|
|
#define C_PSYM (0x82)
|
|
#define C_RSYM (0x83)
|
|
#define C_RPSYM (0x84)
|
|
#define C_STSYM (0x85)
|
|
#define C_TCSYM (0x86)
|
|
#define C_BCOMM (0x87)
|
|
#define C_ECOML (0x88)
|
|
#define C_ECOMM (0x89)
|
|
#define C_DECL (0x8c)
|
|
#define C_ENTRY (0x8d)
|
|
#define C_FUN (0x8e)
|
|
#define C_BSTAT (0x8f)
|
|
#define C_ESTAT (0x90)
|
|
|
|
/* Storage classes for Thumb symbols */
|
|
#define C_THUMBEXT (128 + C_EXT) /* 130 */
|
|
#define C_THUMBSTAT (128 + C_STAT) /* 131 */
|
|
#define C_THUMBLABEL (128 + C_LABEL) /* 134 */
|
|
#define C_THUMBEXTFUNC (C_THUMBEXT + 20) /* 150 */
|
|
#define C_THUMBSTATFUNC (C_THUMBSTAT + 20) /* 151 */
|
|
|
/********************** SECTION HEADER **********************/
|
/********************** SECTION HEADER **********************/
|
|
|
struct COFF_scnhdr {
|
struct COFF_scnhdr {
|
char s_name[8]; /* section name */
|
char s_name[8]; /* section name */
|
char s_paddr[4]; /* physical address, aliased s_nlib */
|
char s_paddr[4]; /* physical address, aliased s_nlib */
|