Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:docs:tk:formats:newexe [2024/09/25 06:08] – prokushev | en:docs:tk:formats:newexe [2024/09/26 12:59] (current) – prokushev | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== New Executable file format ====== | ||
+ | |||
+ | New Executable (NE) file format used by set of operating system including OS/2, Windows, Multitasking MS-DOS 4 and set of DOS Extenders. It is designed to be store on disk and in-memory usage. In-disk format is same for all OSes, but In-memory usage is mostly specific for Windows systems. | ||
+ | |||
^ Offset ^ Size ^ Name ^ Description ^ | ^ Offset ^ Size ^ Name ^ Description ^ | ||
| 00h | WORD | ne_magic | Signature word NEMAGIC | | | 00h | WORD | ne_magic | Signature word NEMAGIC | | ||
Line 71: | Line 75: | ||
} ns_union; | } ns_union; | ||
}; | }; | ||
+ | |||
+ | Relocation table header | ||
^ Offset ^ Size ^ Name ^ Description ^ | ^ Offset ^ Size ^ Name ^ Description ^ | ||
| 00h | WORD | nr_nreloc | ??? | | | 00h | WORD | nr_nreloc | ??? | | ||
+ | Relocation table entry | ||
+ | |||
+ | ^ Offset ^ Size ^ Name ^ Description ^ | ||
+ | | 00h | char | nr_stype | ??? | | ||
+ | | 01h | char | nr_flags | ??? | | ||
+ | | 02h | WORD | nr_soff | ??? | | ||
+ | | Internal fixup |||| | ||
+ | | 04h | char | nr_segno | ??? | | ||
+ | | 05h | char | nr_res | ??? | | ||
+ | | 06h | WORD | nr_entry | ??? | | ||
+ | | ??? |||| | ||
+ | | 04h | WORD | nr_mod | ??? | | ||
+ | | 06h | WORD | nr_proc | ??? | | ||
+ | | OS Fixup |||| | ||
+ | | 04h | WORD | nr_ostype | ??? | | ||
+ | | 06h | WORD | nr_osres | ??? | | ||
- | struct new_rlc { | ||
- | char nr_stype; | ||
- | char nr_flags; | ||
- | WORD nr_soff; | ||
- | union { | ||
- | struct { | ||
- | char nr_segno; | ||
- | char nr_res; | ||
- | WORD nr_entry; | ||
- | } nr_intref; | ||
- | struct { | ||
- | WORD nr_mod; | ||
- | WORD nr_proc; | ||
- | } nr_import; | ||
- | struct { | ||
- | WORD nr_ostype; | ||
- | WORD nr_osres; | ||
- | } nr_osfix; | ||
- | } nr_union; | ||
- | }; | ||
^ Offset ^ Size ^ Name ^ Description ^ | ^ Offset ^ Size ^ Name ^ Description ^ |