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