source: buchla-68k/orig/lib/INCLUDE/OBJDEFS.H@ eee74cd

Last change on this file since eee74cd was 3ae31e9, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Imported original source code.

  • Property mode set to 100755
File size: 1.4 KB
Line 
1/*
2 ============================================================================
3 objdefs.h -- Object file format for as68 (Atari 1040ST TOS objects)
4 Version 7 -- 1987-12-30 -- D.N. Lynx Crowe
5 ============================================================================
6*/
7
8struct EXFILE { /* executable file header */
9
10 unsigned F_Magic; /* File type magic */
11 long F_Text; /* SIze of text segment */
12 long F_Data; /* Size of data segment */
13 long F_BSS; /* Size of BSS segment */
14 long F_Symtab; /* Size of symbol table */
15 long F_Res1; /* Reserved area #1 */
16 long F_Res2; /* Reserved area #2 -- text origin */
17 unsigned F_Res3; /* Reserved area #3 -- flag word */
18
19 /* data origin - long */
20 /* bss origin - long */
21};
22
23#define F_R_C 0x601A /* Magic for contiguous file */
24#define F_R_D 0x601B /* Magic for discontiguous file */
25
26struct SYMBOL { /* Symbol table entry -- 14 bytes */
27
28 char symname[8]; /* Symbol name (LJZF) */
29 unsigned symtype; /* Symbol type flags */
30 long symvalue; /* Symbol value */
31};
32
33#define S_Def 0x8000 /* Defined */
34#define S_Equ 0x4000 /* Equated */
35#define S_Glb 0x2000 /* Global */
36#define S_Reg 0x1000 /* Equated register */
37#define S_Ext 0x0800 /* External reference */
38#define S_Data 0x0400 /* Data based relocatable */
39#define S_Text 0x0200 /* Text based relocatable */
40#define S_BSS 0x0100 /* BSS based relocatable */
Note: See TracBrowser for help on using the repository browser.