Hi all, At least on Fedora 18, we have to compile with "-z execstack" which solves the reported issue. Beware that execstack introduces a security holes I'm not sure if -fno-stack-protector is also required Now, the difficult part is to tell configure which gcc version start to support this option and which OS now requires to have -z execstack Perhaps, some users may want to have tcc to compile programs only the standard way (i.e. .o + binary) keeping secure behavior without -z exectack and some other want to be able to use -run which this time requires execstak.
We have to consider to pass an option to ./configure to allow both, something --with-run M2c C. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Christian Jullien Sent: mardi 5 février 2013 20:17 To: 'grischka'; [email protected] Subject: Re: [Tinycc-devel] current mod makes a core dump on Fedora18 x86_64 I've no time tonight but tomorrow I'll try to play with -z execstack and/or -fno-stack-protection -----Original Message----- From: grischka [mailto:[email protected]] Sent: mardi 5 février 2013 11:09 To: [email protected] Cc: Christian JULLIEN Subject: Re: [Tinycc-devel] current mod makes a core dump on Fedora18 x86_64 Christian Jullien wrote: > Just checked this morning on F18 x86_64 > > [SNIP] > make[1]: Entering directory `/home/jullien/tinycc/tests2' > Test: 00_assignment... > /bin/sh: line 5: 19084 Segmentation fault (core dumped) ../tcc -B.. > -run 00_assignment.c 2>&1 > 00_assignment.output > make[1]: *** [00_assignment.test] Error 139 > make[1]: Leaving directory `/home/jullien/tinycc/tests2' > make: *** [test] Error 2 Problem with the tests2 is that we don't see the actual error message. You could look in "00_assignment.output" or remove the 2>&1 redirection (2 times) in tests2/Makefile and try again. --- grischka _______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel _______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
