From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 354 invoked by alias); 24 May 2011 15:35:21 -0000 Received: (qmail 32758 invoked by uid 22791); 24 May 2011 15:35:19 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,TW_ZJ,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from snape.CeBiTec.Uni-Bielefeld.DE (HELO smtp-relay.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 24 May 2011 15:35:03 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 629833DE; Tue, 24 May 2011 17:35:02 +0200 (CEST) Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id PBOG6Ko1KFg8; Tue, 24 May 2011 17:35:00 +0200 (CEST) Received: from manam.CeBiTec.Uni-Bielefeld.DE (manam.CeBiTec.Uni-Bielefeld.DE [129.70.161.120]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id 5D0983DD; Tue, 24 May 2011 17:35:00 +0200 (CEST) Received: (from ro@localhost) by manam.CeBiTec.Uni-Bielefeld.DE (8.14.4+Sun/8.14.4/Submit) id p4OFYx32016585; Tue, 24 May 2011 17:34:59 +0200 (MEST) From: Rainer Orth To: Uros Bizjak Cc: gcc-patches@gcc.gnu.org Subject: Re: [build] Fix Solaris 2/x86 GD/LD TLS code sequences with Sun ld References: Date: Tue, 24 May 2011 17:19:00 -0000 In-Reply-To: (Uros Bizjak's message of "Tue, 24 May 2011 17:14:30 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (usg-unix-v) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-05/txt/msg01737.txt.bz2 Uros Bizjak writes: >> I think I tried something along these lines, but failed with duplicate >> @plt@plt for PIC code. > > Hm, there is no %P1 present, so I don't think this should be an issue. Unfortunately, I do get assembler errors (Sun as at the moment) with your updated patch: libtool: compile: /var/gcc/gcc-4.7.0-20110523/10-gcc/./gcc/xgcc -shared-li= bgcc -B/var/gcc/gcc-4.7.0-20110523/10-gcc/./gcc -nostdinc++ -L/var/gcc/gcc-= 4.7.0-20110523/10-gcc/i386-pc-solaris2.10/amd64/libstdc++-v3/src -L/var/gcc= /gcc-4.7.0-20110523/10-gcc/i386-pc-solaris2.10/amd64/libstdc++-v3/src/.libs= -B/usr/local/i386-pc-solaris2.10/bin/ -B/usr/local/i386-pc-solaris2.10/lib= / -isystem /usr/local/i386-pc-solaris2.10/include -isystem /usr/local/i386-= pc-solaris2.10/sys-include -m64 -I/vol/gcc/src/hg/trunk/solaris/libstdc++-v= 3/../gcc -I/var/gcc/gcc-4.7.0-20110523/10-gcc/i386-pc-solaris2.10/amd64/lib= stdc++-v3/include/i386-pc-solaris2.10 -I/var/gcc/gcc-4.7.0-20110523/10-gcc/= i386-pc-solaris2.10/amd64/libstdc++-v3/include -I/vol/gcc/src/hg/trunk/sola= ris/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall -Wextra -Wwrite-st= rings -Wcast-qual -fdiagnostics-show-location=3Donce -ffunction-sections -f= data-sections -g -O2 -m64 -c /vol/gcc/src/hg/trunk/solaris/libstdc++-v3/lib= supc++/fundamental_type_info.cc -fPIC -DPIC -o funinfo.o damental_type_info.o Assembler: eh_globals.cc "/var/tmp//ccJ1MA8h.s", line 17 : Syntax error Near line: " call __tls_get_addr(%rip)@plt" "/var/tmp//ccJ1MA8h.s", line 38 : Syntax error Near line: " call __tls_get_addr(%rip)@plt" make[9]: *** [eh_globals.lo] Error 1 Which makes me wonder if I should run the gcc.dg/torture/tls-*.c tests with -fPIC, too. >>> is IIRC preferred by Sun assebler. >> >> I've never seen such an issue. > > OK, it is your call... please change @plt to @PLT if desired. I'll keep it at @plt for consistency with the rest. Thanks. Rainer --=20 ---------------------------------------------------------------------------= -- Rainer Orth, Center for Biotechnology, Bielefeld University