binaries compiled by PCC do not work in Fedora 15 (glibc 2.13.90). PCC works fine in Fedora 14 (glibc-2.13).
Example: A Hello World program (a.c)
$ pcc a.c
and run with
in Fedora 14 x86_64, but
Segmentation fault (core dumped)
in Fedora 15.
Output of $valgrind ./a.out
==4974== Process terminating with default action of signal 11 (SIGSEGV)
==4974== Access not within mapped region at address 0x0
==4974== at 0x1: ???
==4974== by 0x40042D: __do_global_ctors_aux (in /tmp/a.out)
==4974== by 0x40034D: ??? (in /tmp/a.out)
==4974== by 0xE2: ???
==4974== by 0x400554: __libc_csu_init (in /tmp/a.out)
==4974== by 0x34892213CF: (below main) (libc-start.c:185)
==4974== If you believe this happened as a result of a stack
==4974== overflow in your program's main thread (unlikely but
==4974== possible), you can try to increase the size of the
==4974== main thread stack using the --main-stacksize= flag.
==4974== The main thread stack size used in this run was 8388608.