Link
# convert to hex
objcopy -O binary <file> file.bin
hexdump -v -e '"\\""x" 1/1 "%02x" ""' file.bin