Skip to content

Instantly share code, notes, and snippets.

View domenukk's full-sized avatar
🦥

Dominik Maier domenukk

🦥
View GitHub Profile
@domenukk
domenukk / bin2elf.sh
Last active September 28, 2024 00:46 — forked from ssvb/bin2elf.sh
Convert a memory dump/raw binary image into an ELF file
#!/bin/sh
# Convert a raw binary image into an ELF file suitable for loading into a disassembler
#
# Usage: bin2elf input_binary_file output_elf_file base_address
cat > raw$$.ld <<EOF
SECTIONS
{
EOF