home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
c
/
condor40.zip
/
CONDOR
/
src
/
h
/
coff_desc.h
< prev
next >
Wrap
Text File
|
1989-08-30
|
1KB
|
54 lines
typedef struct filehdr FILE_HDR;
typedef struct scnhdr SCN_HDR;
typedef struct aouthdr AOUT_HDR;
#define FILE_HDR_SIZ sizeof(FILE_HDR)
#define SCN_HDR_SIZ sizeof(SCN_HDR)
#define AOUT_HDR_SIZ sizeof(AOUT_HDR)
/* Apparently MIPS file headers contain byte counts rather than structure
counts. -- mike
#define RELOC_SIZ sizeof(RELOC)
#define SYM_SIZ sizeof(struct syment)
#define LINENO_SIZ sizeof(struct lineno)
*/
#define RELOC_SIZ 1
#define SYM_SIZ 1
#define LINENO_SIZ 1
typedef struct {
int fd;
int offset;
int len;
} FILE_BLOCK;
typedef struct {
char *data;
int len;
} CORE_BLOCK;
typedef struct {
int block_tag;
union {
FILE_BLOCK file_block;
CORE_BLOCK core_block;
} block_val;
} DATA_BLOCK;
#define FILE_DATA 1
#define CORE_DATA 2
typedef struct {
SCN_HDR *hdr;
DATA_BLOCK raw_data;
DATA_BLOCK reloc_info;
DATA_BLOCK lineno_info;
} SECTION;
typedef struct {
FILE_HDR *file_hdr;
AOUT_HDR *aout_hdr;
SECTION *section; /* allocate and access as an array */
DATA_BLOCK sym_tab_loc;
DATA_BLOCK str_tab_loc;
} COFF_DESC;