Re: [Tinycc-devel] segmentation fault on any code compiled by tcc with glibc 2.21

2015-12-16 Thread Michael Matz

Hi,

On Tue, 15 Dec 2015, Vincent Lefevre wrote:

With glibc 2.21 (Debian/unstable on x86_64), on any code compiled by 
tcc segfaults. This occurs with both old tcc (tcc 
0.9.27~git20140923.9d7fb33-3 Debian package) and mob. I wonder whether 
this is a bug in tcc or in the glibc.


According to Aurelien Jarno, this is actually due to new binutils 
relocations (and the Debian glibc 2.21-4 package is built with a recent 
binutils, hence the problem with it).


Details:

 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=808008#22


Blaeh.  I didn't consider the case of the libc runtime startup .o files 
when agreeing to the new relocs.  Arguably those object files exposed to 
every linker trying to create user-space programs shouldn't use the new 
relocs (they provide a very minor performance benefit sometimes) even 
with new binutils (and so that's a QoI issue in glibc), but it's easy 
enough to deal with them in tcc.


Try newest mob again.


Ciao,
Michael.

___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


[Tinycc-devel] tcc mob regression on x86_64

2015-12-16 Thread Aharon Robbins
Hi All.

TCC on x86_64 is broken (again) when used to create .so files. I like
to use it for gawk development since it's fast.

Unfortunately, all the shared library stuff no longer works.
This can be reproduced using the current version:

wget ftp://ftp.gnu.org/gnu/gawk/gawk-4.1.3.tar.gz
tar -xpzvf gawk-4.1.3.tar.gz
cd gawk-4.1.3
PATH=/tmp/tcc/bin:$PATH # or wherever you have latest mob
./configure CC=tcc && make
make check

This used to work...

Thanks,

Arnold

___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel