Ok, I have slipped into this one too :) The following patch documents
it, so that people don't go crazy trying to figure out what is
happening.
Cheers!
Index: README
===================================================================
RCS file: /cvsroot/tinycc/tinycc/README,v
retrieving revision 1.16
diff -u -r1.16 README
--- README 17 Jun 2005 22:07:03 -0000 1.16
+++ README 29 Aug 2005 01:31:27 -0000
@@ -54,6 +54,15 @@
arguments are put in 'argc' and 'argv' of the main functions, as in
ANSI C.
+========
+WARNING:
+========
+In order to use the `-run' option in your system, make sure you have
+exec-shield disabled, otherwise you will get a segmentation fault. The
+following command disables exec-shield:
+
+$ echo 0 >/proc/sys/kernel/exec-shield
+
3) Examples
ex1.c: simplest example (hello world). Can also be launched directly
Index: tcc-doc.texi
===================================================================
RCS file: /cvsroot/tinycc/tinycc/tcc-doc.texi,v
retrieving revision 1.26
diff -u -r1.26 tcc-doc.texi
--- tcc-doc.texi 17 Jun 2005 22:07:03 -0000 1.26
+++ tcc-doc.texi 29 Aug 2005 01:31:28 -0000
@@ -181,6 +181,14 @@
@}
@end example
address@hidden:} In order to use the `-run' option in your system, make sure you have
+exec-shield disabled, otherwise you will get a segmentation fault. The
+following command disables exec-shield:
+
address@hidden
+$ echo 0 >/proc/sys/kernel/exec-shield
address@hidden example
+
@end table