tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Michael Matz
Subject: Re: [Tinycc-devel] segmentation fault on any code compiled by tcc with glibc 2.21
Date: Thu, 17 Dec 2015 07:24:09 +0100 (CET)
User-agent: Alpine 2.20 (LSU 67 2015-01-07)

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]