|
|
1.1 root 1: //
2: // nono
3: // Copyright (C) 2020 [email protected]
4: //
5:
6: #pragma once
7:
8: #include "header.h"
9:
10: // NetBSD の <sys/exec_aout.h>、<sys/aout_mids.h> あたり参考。
11:
12: #define AOUT_MID(x) (((x) >> 16) & 0x3ff)
13: #define AOUT_MID_M68K (0x87) // m68k (8K pages)
14: #define AOUT_MID_M88K (0x99)
15:
16: #define AOUT_OMAGIC (0x0107)
17:
18: struct aout_header {
19: // magic はネットワークバイトオーダ。
20: //
21: // 3 2 1 0
22: // 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
23: // +------------+-------------------+-------------------------------+
24: // | flags | machine id | magic |
25: // +------------+-------------------+-------------------------------+
26: uint32 magic;
27: // 以下はホストバイトオーダ。
28: uint32 textsize;
29: uint32 datasize;
30: uint32 bsssize;
31: uint32 symsize;
32: uint32 entry;
33: uint32 textrelsize;
34: uint32 datarelsize;
35: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.