Cannot execute binary file: Exec format error

You created an object file here and not an executable. That might be the issue.
Try to compile without “-c”

${CC} ${CFLAGS} hello.c -o hello

2 Likes