tcc 0.9.23-r1 will crash when invoked with the "-run" switch on a NX-bit enabled CPU. Upstream fix is in CVS: http://cvs.savannah.nongnu.org/viewcvs/tinycc/tcc.c?root=tinycc&r1=1.172&r2=1.173&makepatch=1&diff_format=u Reproducible: Always Steps to Reproduce: 1. echo -e '#!/usr/bin/tcc -run\nvoid main(){}' > test.c 2. chmod +x test.c 3. ./test.c Actual Results: tcc segfaults because it doesn't mark executable pages with PROT_EXEC
Created attachment 118979 [details, diff] Upstream patch (successfully tested on x86 with NX bit enabled) To test this patch, simply add to src_unpack(): epatch "${FILESDIR}"/${P}-NXbit.patch
Thanks for the report and the patch. I've added this to the ebuild for 0.9.23-r1 (without a revbump).