From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5131 invoked by alias); 16 Sep 2002 09:22:28 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 5115 invoked from network); 16 Sep 2002 09:22:27 -0000 Received: from unknown (HELO sunsite.mff.cuni.cz) (195.113.19.66) by sources.redhat.com with SMTP; 16 Sep 2002 09:22:27 -0000 Received: (from jakub@localhost) by sunsite.mff.cuni.cz (8.11.6/8.11.6) id g8G9MLj16792; Mon, 16 Sep 2002 11:22:21 +0200 Date: Mon, 16 Sep 2002 02:22:00 -0000 From: Jakub Jelinek To: Andreas Jaeger Cc: Roland McGrath , GNU libc hacker Subject: Re: problems with ctype... Message-ID: <20020916112220.C1013@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek References: <200209160512.g8G5CUF04935@dhcp187.sf.frob.com> <20020916090138.B1013@sunsite.ms.mff.cuni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from aj@suse.de on Mon, Sep 16, 2002 at 09:03:54AM +0200 X-SW-Source: 2002-09/txt/msg00031.txt.bz2 On Mon, Sep 16, 2002 at 09:03:54AM +0200, Andreas Jaeger wrote: > Jakub Jelinek writes: > > > On Mon, Sep 16, 2002 at 08:52:35AM +0200, Andreas Jaeger wrote: > >> Roland McGrath writes: > >> > >> > It certainly works fine for me, but I am not using the same tools. > >> > I am using GCC 3.2 with RH modifications and binutils is also a RH version. > >> > >> I just tried it with newer binutils (2.12.90.0.15 20020717) and that > >> worked fine. We might need to document the minimal supported binutils > >> version. > > > > Ours is binutils 2.13.90.0.2. Well, we need to find out the oldest > > binutils which worked ok and also write a binutils testcase whcih will > > ensure this will work right from now on. > > I can easily test this with my old and broken binutils (2.12.90.0.4 > 20020408) but so far I didn't fully grab the problem and how a > testcase might look. > > > I think it is an useful feature to be able to access a compat-only variable > > (and getting to it through aliases doesn't work because of COPY relocs). Actually, looking at it again, what is in CVS doesn't work at all. Just readelf -Wr libc.so | grep __ctype to find out. If it was supposed to work, it would have to have __ctype_b@GLIBC_2.0 (or __ctype_b@@GLIBC_2.0) etc. dynamic relocs. I'm afraid we're back where we used to be, ie. either have to make these symbols @@GLIBC_2.0 etc. (while leaving the headers as is, ie. not declaring nor using them), or have to apply post-link hackery using libelf, or come up with a new binutils solution and require binutils 2.14+. Jakub