[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: |
Vincent Lefevre |
Subject: |
Re: [Tinycc-devel] segmentation fault on any code compiled by tcc with glibc 2.21 |
Date: |
Thu, 24 Dec 2015 13:43:49 +0100 |
User-agent: |
Mutt/1.5.24-6542-vl-r83103 (2015-12-17) |
On 2015-12-17 07:24:09 +0100, Michael Matz wrote:
> 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.
Works well. Thanks.
--
Vincent Lefèvre <address@hidden> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)