Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
9a784f35ed | |||
26add2491f |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -40,3 +40,5 @@ sdk
|
|||||||
# Downloaded KolibriOS artifacts
|
# Downloaded KolibriOS artifacts
|
||||||
kolibrios-img.7z
|
kolibrios-img.7z
|
||||||
kolibri.img
|
kolibri.img
|
||||||
|
|
||||||
|
tools/file/kolibrios.mgc
|
||||||
|
@@ -10,7 +10,7 @@ cmake --build build
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
Launch KolibriOS with the mounted `SDK_TOOLCHAIN_DIR` directory:
|
Launch KolibriOS with the mounted `SDK_SYSROOT_DIR` directory:
|
||||||
```sh
|
```sh
|
||||||
./run-kos.sh
|
./run-kos.sh
|
||||||
```
|
```
|
||||||
|
9
tools/file/README.md
Normal file
9
tools/file/README.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# KolibriOS/Menuet32 magic
|
||||||
|
|
||||||
|
Support for KolibriOS and Menuet32 executable files for the [file](https://www.darwinsys.com/file/) utility.
|
||||||
|
|
||||||
|
## Build and install
|
||||||
|
```sh
|
||||||
|
file -C -m kolibrios
|
||||||
|
install -D kolibrios.mgc ~/.magic/magic.mgc
|
||||||
|
```
|
31
tools/file/kolibrios
Normal file
31
tools/file/kolibrios
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
|
# KolibriOS and Menuet32 executable formats
|
||||||
|
# Copyright (C) 2025 KolibriOS team
|
||||||
|
|
||||||
|
0 string MENUET00 Old Menuet32 executable: MENUET00
|
||||||
|
>0x8 ulelong x \b, Version: %u
|
||||||
|
>0xC ulelong x \b, Entry: 0x%x
|
||||||
|
>0x10 ulelong x \b, Image end: 0x%x
|
||||||
|
>0x14 ulelong x \b, Memory end: 0x%x
|
||||||
|
>0x18 ulelong x \b, Stack top: 0x%x
|
||||||
|
>0x1C ulelong x \b, Command line: 0x%x
|
||||||
|
|
||||||
|
0 string MENUET01 KolibriOS/Menuet32 executable: MENUET01
|
||||||
|
>0x8 ulelong x \b, Version: %u
|
||||||
|
>0xC ulelong x \b, Entry: 0x%x
|
||||||
|
>0x10 ulelong x \b, Image end: 0x%x
|
||||||
|
>0x14 ulelong x \b, Memory end: 0x%x
|
||||||
|
>0x18 ulelong x \b, Stack top: 0x%x
|
||||||
|
>0x1C ulelong x \b, Command line: 0x%x
|
||||||
|
>0x20 ulelong x \b, App name: 0x%x
|
||||||
|
|
||||||
|
0 string MENUET02 KolibriOS executable: MENUET02 (TLS, HEAP init)
|
||||||
|
>0x8 ulelong x \b, Version: %u
|
||||||
|
>0xC ulelong x \b, Entry: 0x%x
|
||||||
|
>0x10 ulelong x \b, Image end: 0x%x
|
||||||
|
>0x14 ulelong x \b, Memory end: 0x%x
|
||||||
|
>0x18 ulelong x \b, Stack top: 0x%x
|
||||||
|
>0x1C ulelong x \b, Command line: 0x%x
|
||||||
|
>0x20 ulelong x \b, App name: 0x%x
|
||||||
|
>0x24 ulelong 2 \b, Subsystem: GUI
|
||||||
|
>0x24 ulelong 3 \b, Subsystem: CUI
|
Reference in New Issue
Block a user