Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
coff.h File Reference

Go to the source code of this file.

Data Structures

struct  COFF_filehdr
 
struct  COFF_AOUTHDR
 
struct  COFF_scnhdr
 
struct  COFF_slib
 
struct  COFF_lineno
 
struct  COFF_syment
 
union  COFF_auxent
 
struct  COFF_reloc
 

Macros

#define E_SYMNMLEN   8 /* Number of characters in a symbol name */
 
#define E_FILNMLEN   14 /* Number of characters in a file name */
 
#define E_DIMNUM   4 /* Number of array dimensions in auxiliary entry */
 
#define COFF_SHORT_L(ps)
 
#define COFF_LONG_L(ps)
 
#define COFF_SHORT_H(ps)
 
#define COFF_LONG_H(ps)
 
#define COFF_LONG(v)   COFF_LONG_L(v)
 
#define COFF_SHORT(v)   COFF_SHORT_L(v)
 
#define COFF_F_RELFLG   0000001
 
#define COFF_F_EXEC   0000002
 
#define COFF_F_LNNO   0000004
 
#define COFF_F_LSYMS   0000010
 
#define COFF_F_MINMAL   0000020
 
#define COFF_F_UPDATE   0000040
 
#define COFF_F_SWABD   0000100
 
#define COFF_F_AR16WR   0000200
 
#define COFF_F_AR32WR   0000400
 
#define COFF_F_AR32W   0001000
 
#define COFF_F_PATCH   0002000
 
#define COFF_F_NODF   0002000
 
#define COFF_I386MAGIC   0x14c /* Linux's system */
 
#define COFF_I386BADMAG(x)   (COFF_SHORT((x).f_magic) != COFF_I386MAGIC)
 
#define COFF_FILHDR   struct COFF_filehdr
 
#define COFF_FILHSZ   sizeof(COFF_FILHDR)
 
#define COFF_AOUTSZ   (sizeof(COFF_AOUTHDR))
 
#define COFF_STMAGIC   0401
 
#define COFF_OMAGIC   0404
 
#define COFF_JMAGIC   0407 /* dirty text and data image, can't share */
 
#define COFF_DMAGIC   0410 /* dirty text segment, data aligned */
 
#define COFF_ZMAGIC   0413 /* The proper magic number for executables */
 
#define COFF_SHMAGIC   0443 /* shared library header */
 
#define COFF_SCNHDR   struct COFF_scnhdr
 
#define COFF_SCNHSZ   sizeof(COFF_SCNHDR)
 
#define COFF_TEXT   ".text"
 
#define COFF_DATA   ".data"
 
#define COFF_BSS   ".bss"
 
#define COFF_COMMENT   ".comment"
 
#define COFF_LIB   ".lib"
 
#define COFF_SECT_TEXT   0 /* Section for instruction code */
 
#define COFF_SECT_DATA   1 /* Section for initialized globals */
 
#define COFF_SECT_BSS   2 /* Section for un-initialized globals */
 
#define COFF_SECT_REQD   3 /* Minimum number of sections for good file */
 
#define COFF_STYP_REG   0x00 /* regular segment */
 
#define COFF_STYP_DSECT   0x01 /* dummy segment */
 
#define COFF_STYP_NOLOAD   0x02 /* no-load segment */
 
#define COFF_STYP_GROUP   0x04 /* group segment */
 
#define COFF_STYP_PAD   0x08 /* .pad segment */
 
#define COFF_STYP_COPY   0x10 /* copy section */
 
#define COFF_STYP_TEXT   0x20 /* .text segment */
 
#define COFF_STYP_DATA   0x40 /* .data segment */
 
#define COFF_STYP_BSS   0x80 /* .bss segment */
 
#define COFF_STYP_INFO   0x200 /* .comment section */
 
#define COFF_STYP_OVER   0x400 /* overlay section */
 
#define COFF_STYP_LIB   0x800 /* library section */
 
#define COFF_SLIBHD   struct COFF_slib
 
#define COFF_SLIBSZ   sizeof(COFF_SLIBHD)
 
#define COFF_LINENO   struct COFF_lineno
 
#define COFF_LINESZ   6
 
#define COFF_E_SYMNMLEN   8 /* # characters in a short symbol name */
 
#define COFF_E_FILNMLEN   14 /* # characters in a file name */
 
#define COFF_E_DIMNUM   4 /* # array dimensions in auxiliary entry */
 
#define COFF_N_BTMASK   (0xf) /* Mask for important class bits */
 
#define COFF_N_TMASK   (0x30) /* Mask for important type bits */
 
#define COFF_N_BTSHFT   (4) /* # bits to shift class field */
 
#define COFF_N_TSHIFT   (2) /* # bits to shift type field */
 
#define COFF_SYMENT   struct COFF_syment
 
#define COFF_SYMESZ   18
 
#define COFF_AUXENT   union COFF_auxent
 
#define COFF_AUXESZ   18
 
#define COFF_ETEXT   "etext"
 
#define COFF_RELOC   struct COFF_reloc
 
#define COFF_RELSZ   10
 
#define COFF_DEF_DATA_SECTION_ALIGNMENT   4
 
#define COFF_DEF_BSS_SECTION_ALIGNMENT   4
 
#define COFF_DEF_TEXT_SECTION_ALIGNMENT   4
 
#define COFF_DEF_SECTION_ALIGNMENT   4
 

Macro Definition Documentation

#define COFF_AOUTSZ   (sizeof(COFF_AOUTHDR))

Definition at line 142 of file coff.h.

#define COFF_AUXENT   union COFF_auxent

Definition at line 330 of file coff.h.

#define COFF_AUXESZ   18

Definition at line 331 of file coff.h.

#define COFF_BSS   ".bss"

Definition at line 175 of file coff.h.

#define COFF_COMMENT   ".comment"

Definition at line 176 of file coff.h.

#define COFF_DATA   ".data"

Definition at line 174 of file coff.h.

#define COFF_DEF_BSS_SECTION_ALIGNMENT   4

Definition at line 347 of file coff.h.

#define COFF_DEF_DATA_SECTION_ALIGNMENT   4

Definition at line 346 of file coff.h.

#define COFF_DEF_SECTION_ALIGNMENT   4

Definition at line 351 of file coff.h.

#define COFF_DEF_TEXT_SECTION_ALIGNMENT   4

Definition at line 348 of file coff.h.

#define COFF_DMAGIC   0410 /* dirty text segment, data aligned */

Definition at line 147 of file coff.h.

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

Definition at line 233 of file coff.h.

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

Definition at line 232 of file coff.h.

#define COFF_E_SYMNMLEN   8 /* # characters in a short symbol name */

Definition at line 231 of file coff.h.

#define COFF_ETEXT   "etext"

Definition at line 333 of file coff.h.

#define COFF_F_AR16WR   0000200

Definition at line 95 of file coff.h.

#define COFF_F_AR32W   0001000

Definition at line 97 of file coff.h.

#define COFF_F_AR32WR   0000400

Definition at line 96 of file coff.h.

#define COFF_F_EXEC   0000002

Definition at line 89 of file coff.h.

#define COFF_F_LNNO   0000004

Definition at line 90 of file coff.h.

#define COFF_F_LSYMS   0000010

Definition at line 91 of file coff.h.

#define COFF_F_MINMAL   0000020

Definition at line 92 of file coff.h.

#define COFF_F_NODF   0002000

Definition at line 99 of file coff.h.

#define COFF_F_PATCH   0002000

Definition at line 98 of file coff.h.

#define COFF_F_RELFLG   0000001

Definition at line 88 of file coff.h.

#define COFF_F_SWABD   0000100

Definition at line 94 of file coff.h.

#define COFF_F_UPDATE   0000040

Definition at line 93 of file coff.h.

#define COFF_FILHDR   struct COFF_filehdr

Definition at line 113 of file coff.h.

#define COFF_FILHSZ   sizeof(COFF_FILHDR)

Definition at line 114 of file coff.h.

#define COFF_I386BADMAG (   x)    (COFF_SHORT((x).f_magic) != COFF_I386MAGIC)

Definition at line 110 of file coff.h.

#define COFF_I386MAGIC   0x14c /* Linux's system */

Definition at line 101 of file coff.h.

#define COFF_JMAGIC   0407 /* dirty text and data image, can't share */

Definition at line 146 of file coff.h.

#define COFF_LIB   ".lib"

Definition at line 177 of file coff.h.

#define COFF_LINENO   struct COFF_lineno

Definition at line 226 of file coff.h.

#define COFF_LINESZ   6

Definition at line 227 of file coff.h.

#define COFF_LONG (   v)    COFF_LONG_L(v)

Definition at line 49 of file coff.h.

#define COFF_LONG_H (   ps)
Value:
(((long)(((unsigned long)((unsigned char)ps[0])<<24) |\
((unsigned long)((unsigned char)ps[1])<<16) |\
((unsigned long)((unsigned char)ps[2])<<8) |\
((unsigned long)((unsigned char)ps[3])))))

Definition at line 39 of file coff.h.

#define COFF_LONG_L (   ps)
Value:
(((long)(((unsigned long)((unsigned char)ps[3])<<24) |\
((unsigned long)((unsigned char)ps[2])<<16) |\
((unsigned long)((unsigned char)ps[1])<<8) |\
((unsigned long)((unsigned char)ps[0])))))

Definition at line 29 of file coff.h.

#define COFF_N_BTMASK   (0xf) /* Mask for important class bits */

Definition at line 256 of file coff.h.

#define COFF_N_BTSHFT   (4) /* # bits to shift class field */

Definition at line 258 of file coff.h.

#define COFF_N_TMASK   (0x30) /* Mask for important type bits */

Definition at line 257 of file coff.h.

#define COFF_N_TSHIFT   (2) /* # bits to shift type field */

Definition at line 259 of file coff.h.

#define COFF_OMAGIC   0404

Definition at line 145 of file coff.h.

#define COFF_RELOC   struct COFF_reloc

Definition at line 343 of file coff.h.

#define COFF_RELSZ   10

Definition at line 344 of file coff.h.

#define COFF_SCNHDR   struct COFF_scnhdr

Definition at line 166 of file coff.h.

#define COFF_SCNHSZ   sizeof(COFF_SCNHDR)

Definition at line 167 of file coff.h.

#define COFF_SECT_BSS   2 /* Section for un-initialized globals */

Definition at line 181 of file coff.h.

#define COFF_SECT_DATA   1 /* Section for initialized globals */

Definition at line 180 of file coff.h.

#define COFF_SECT_REQD   3 /* Minimum number of sections for good file */

Definition at line 182 of file coff.h.

#define COFF_SECT_TEXT   0 /* Section for instruction code */

Definition at line 179 of file coff.h.

#define COFF_SHMAGIC   0443 /* shared library header */

Definition at line 149 of file coff.h.

#define COFF_SHORT (   v)    COFF_SHORT_L(v)

Definition at line 50 of file coff.h.

#define COFF_SHORT_H (   ps)
Value:
((short)(((unsigned short)((unsigned char)ps[0])<<8)|\
((unsigned short)((unsigned char)ps[1]))))

Definition at line 35 of file coff.h.

#define COFF_SHORT_L (   ps)
Value:
((short)(((unsigned short)((unsigned char)ps[1])<<8)|\
((unsigned short)((unsigned char)ps[0]))))

Definition at line 25 of file coff.h.

#define COFF_SLIBHD   struct COFF_slib

Definition at line 207 of file coff.h.

#define COFF_SLIBSZ   sizeof(COFF_SLIBHD)

Definition at line 208 of file coff.h.

#define COFF_STMAGIC   0401

Definition at line 144 of file coff.h.

#define COFF_STYP_BSS   0x80 /* .bss segment */

Definition at line 192 of file coff.h.

#define COFF_STYP_COPY   0x10 /* copy section */

Definition at line 189 of file coff.h.

#define COFF_STYP_DATA   0x40 /* .data segment */

Definition at line 191 of file coff.h.

#define COFF_STYP_DSECT   0x01 /* dummy segment */

Definition at line 185 of file coff.h.

#define COFF_STYP_GROUP   0x04 /* group segment */

Definition at line 187 of file coff.h.

#define COFF_STYP_INFO   0x200 /* .comment section */

Definition at line 193 of file coff.h.

#define COFF_STYP_LIB   0x800 /* library section */

Definition at line 195 of file coff.h.

#define COFF_STYP_NOLOAD   0x02 /* no-load segment */

Definition at line 186 of file coff.h.

#define COFF_STYP_OVER   0x400 /* overlay section */

Definition at line 194 of file coff.h.

#define COFF_STYP_PAD   0x08 /* .pad segment */

Definition at line 188 of file coff.h.

#define COFF_STYP_REG   0x00 /* regular segment */

Definition at line 184 of file coff.h.

#define COFF_STYP_TEXT   0x20 /* .text segment */

Definition at line 190 of file coff.h.

#define COFF_SYMENT   struct COFF_syment

Definition at line 328 of file coff.h.

#define COFF_SYMESZ   18

Definition at line 329 of file coff.h.

#define COFF_TEXT   ".text"

Definition at line 173 of file coff.h.

#define COFF_ZMAGIC   0413 /* The proper magic number for executables */

Definition at line 148 of file coff.h.

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

Definition at line 15 of file coff.h.

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

Definition at line 14 of file coff.h.

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

Definition at line 13 of file coff.h.