/* * filehdr.h * * Copyright (C) 1997 by Sony Computer Entertainment * All rights Reserved */ #ifndef _FILEHDR_H #define _FILEHDR_H struct filehdr { unsigned short f_magic; /* magic number */ unsigned short f_nscns; /* number of sections */ long f_timdat; /* time & date stamp */ long f_symptr; /* file pointer to symbolic header */ long f_nsyms; /* sizeof(symbolic hdr) */ unsigned short f_opthdr; /* sizeof(optional hdr) */ unsigned short f_flags; /* flags */ }; #define F_RELFLG 0000001 #define F_EXEC 0000002 #define F_LNNO 0000004 #define F_LSYMS 0000010 #define F_MINMAL 0000020 #define F_UPDATE 0000040 #define F_SWABD 0000100 #define F_AR16WR 0000200 #define F_AR32WR 0000400 #define F_AR32W 0001000 #define F_PATCH 0002000 #define F_NODF 0002000 #define MAGIC_MIPS1 2 #define MAGIC_MIPS2 6 #define MAGIC_ARCH_MASK 0x000F #define MAGIC_ARCH_SHFT 0 #define MAGIC_S_ARCH_MASK 0x0F00 #define MAGIC_S_ARCH_SHFT 8 #define MIPSEBMAGIC 0x0160 #define MIPSELMAGIC 0x0162 #define SMIPSEBMAGIC 0x6001 #define SMIPSELMAGIC 0x6201 #define MIPSEBUMAGIC 0x0180 #define MIPSELUMAGIC 0x0182 #define MIPSEBMAGIC_2 0x0163 #define MIPSELMAGIC_2 0x0166 #define SMIPSEBMAGIC_2 0x6301 #define SMIPSELMAGIC_2 0x6601 #define MIPSEBMAGIC_3 0x0140 #define MIPSELMAGIC_3 0x0142 #define SMIPSEBMAGIC_3 0x4001 #define SMIPSELMAGIC_3 0x4201 #endif /* _FILEHDR_H */