Compile a 32bit binary with an executable stack and no canary values:

gcc -m32                      
    -fno-stack-protector
    -zexecstack
    -mpreferred-stack-boundary=2
    -o foo foo.c