Skip to content

Instantly share code, notes, and snippets.

View arminask's full-sized avatar
🐒

Arminas Keršys arminask

🐒
View GitHub Profile
@arminask
arminask / pil-squasher.py
Last active October 25, 2024 11:29
Python pil-squasher script that assembles ELF segments into a single .mbn file
#!/usr/bin/env python
"""
Assemble ELF segments into a single mbn file.
Usage: pil-squasher.py <mbn output> <mdt header>
This script reads an ELF header and program headers from the specified mdt
file and combines the corresponding segments from .bXX files or the mdt file
itself into a single mbn file.