/
aoutmint.h
32 lines (29 loc) · 1.23 KB
/
aoutmint.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* $VER: vlink aoutmint.h V0.13 (02.11.10)
*
* This file is part of vlink, a portable linker for multiple
* object formats.
* Copyright (c) 1997-2010 Frank Wille
*
* vlink is freeware and part of the portable and retargetable ANSI C
* compiler vbcc, copyright (c) 1995-2010 by Volker Barthelmann.
* vlink may be freely redistributed as long as no modifications are
* made and nothing is charged for it. Non-commercial usage is allowed
* without any restrictions.
* EVERY PRODUCT OR PROGRAM DERIVED DIRECTLY FROM MY SOURCE MAY NOT BE
* SOLD COMMERCIALLY WITHOUT PERMISSION FROM THE AUTHOR.
*/
#include "tosdefs.h"
#include "aout.h"
/* a.out-MiNT program header */
struct mint_exec
{
PH tos; /* TOS-part of the header */
uint8_t jmp_entry[8]; /* asm: e_entry to d0 and jump to e_entry */
struct aout_hdr aout; /* the standard a.out header */
uint8_t tparel_pos[4]; /* TPA relocs file offset */
uint8_t tparel_size[4]; /* TPA relocs size */
uint8_t stkpos[4]; /* file offset for stack size */
uint8_t symbol_fmt[4]; /* format of symbol table */
uint8_t pad0[172]; /* 0-paddding */
};
#define TEXT_OFFSET (0xe4) /* offset of real .text start */