1 /*****************************************************************************/
5 /* Object file definitions */
9 /* (C) 1998 Ullrich von Bassewitz */
11 /* D-70597 Stuttgart */
12 /* EMail: uz@musoftware.de */
15 /* This software is provided 'as-is', without any expressed or implied */
16 /* warranty. In no event will the authors be held liable for any damages */
17 /* arising from the use of this software. */
19 /* Permission is granted to anyone to use this software for any purpose, */
20 /* including commercial applications, and to alter it and redistribute it */
21 /* freely, subject to the following restrictions: */
23 /* 1. The origin of this software must not be misrepresented; you must not */
24 /* claim that you wrote the original software. If you use this software */
25 /* in a product, an acknowledgment in the product documentation would be */
26 /* appreciated but is not required. */
27 /* 2. Altered source versions must be plainly marked as such, and must not */
28 /* be misrepresented as being the original software. */
29 /* 3. This notice may not be removed or altered from any source */
32 /*****************************************************************************/
41 /*****************************************************************************/
43 /*****************************************************************************/
47 /* Defines for magic and version */
48 #define OBJ_MAGIC 0x616E7A55
49 #define OBJ_VERSION 0x0009
51 /* Size of an object file header */
52 #define OBJ_HDR_SIZE 64
55 #define OBJ_FLAGS_DBGINFO 0x0001 /* File has debug info */
59 /* Header structure */
60 typedef struct ObjHeader_ ObjHeader;
62 unsigned long Magic; /* 32: Magic number */
63 unsigned Version; /* 16: Version number */
64 unsigned Flags; /* 16: flags */
65 unsigned long OptionOffs; /* 32: Offset to option table */
66 unsigned long OptionSize; /* 32: Size of options */
67 unsigned long FileOffs; /* 32: Offset to file table */
68 unsigned long FileSize; /* 32: Size of files */
69 unsigned long SegOffs; /* 32: Offset to segment table */
70 unsigned long SegSize; /* 32: Size of segment table */
71 unsigned long ImportOffs; /* 32: Offset to import list */
72 unsigned long ImportSize; /* 32: Size of import list */
73 unsigned long ExportOffs; /* 32: Offset to export list */
74 unsigned long ExportSize; /* 32: Size of export list */
75 unsigned long DbgSymOffs; /* 32: Offset to list of debug symbols */
76 unsigned long DbgSymSize; /* 32: Size of debug symbols */
77 unsigned long LineInfoOffs; /* 32: Offset to list of line infos */
78 unsigned long LineInfoSize; /* 32: Size of line infos */
83 /* End of objdefs.h */