Add little script for adding elf header to file

This commit is contained in:
g1n 2021-08-22 07:38:26 +00:00
commit 0652f368d7
1 changed files with 10 additions and 0 deletions

10
elf.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh
# Simple script to add ELF header before hex instructions
CODE=$1
BINFILE=$2
ELF_HEADER=$3
cat $ELF_HEADER > $BINFILE
echo -n -e '$CODE' >> $BINFILE