3 include ${TESTROOT}/include/common.makefile
6 # Test the we set the data execute bit for i386
26 ${CC} ${CCFLAGS} main.c -o main-allow -Wl,-allow_heap_execute
27 ${FAIL_IF_BAD_MACHO} main-allow
28 ${OTOOL} -hv main-allow | grep MH_NO_HEAP_EXECUTION | ${FAIL_IF_STDIN}
29 # Test without the flag
30 ${CC} ${CCFLAGS} main.c -o main
31 ${OTOOL} -hv main | grep MH_NO_HEAP_EXECUTION | ${FAIL_IF_EMPTY}
32 ${PASS_IFF_GOOD_MACHO} main
35 rm -rf main main-allow