Skip to content

Instantly share code, notes, and snippets.

View hypoxic's full-sized avatar

HYPOXIC | Trunk hypoxic

View GitHub Profile
@tangrs
tangrs / bin2elf.sh
Last active April 15, 2024 02:34
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
cat > raw$$.ld <<EOF
SECTIONS
{
EOF
echo " . = $3;" >> raw$$.ld