mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Cleanup
This commit is contained in:
@@ -6,7 +6,11 @@ if have_command nasm && have_command objdump ; then
|
||||
local TMPF=`mktemp`
|
||||
local bytes
|
||||
local byte
|
||||
$NASM -f elf -o $TMPF $1
|
||||
local format="elf"
|
||||
if [[ "$OSTYPE" == darwin* ]]; then
|
||||
format="macho64"
|
||||
fi
|
||||
$NASM -f $format -o $TMPF $1
|
||||
$OBJDUMP -M intel -d $TMPF | grep '^ ' | cut -f2 | while read -A bytes ; do
|
||||
for byte in $bytes ; do
|
||||
echo -n "\\\\x$byte"
|
||||
|
||||
Reference in New Issue
Block a user