From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16109 invoked by alias); 25 Jul 2011 16:52:14 -0000 Received: (qmail 16095 invoked by uid 22791); 25 Jul 2011 16:52:12 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,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; Mon, 25 Jul 2011 16:51:57 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id E09F6BD1; Mon, 25 Jul 2011 18:51:55 +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 NmNcvIi0fyPL; Mon, 25 Jul 2011 18:51:53 +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 A8AEFBCF; Mon, 25 Jul 2011 18:51:53 +0200 (CEST) Received: (from ro@localhost) by manam.CeBiTec.Uni-Bielefeld.DE (8.14.5+Sun/8.14.5/Submit) id p6PGpqGA005085; Mon, 25 Jul 2011 18:51:52 +0200 (MEST) From: Rainer Orth To: sje@cup.hp.com Cc: Tristan Gingold , GCC Patches , Douglas Rupp Subject: Re: CFT: Move unwinder to toplevel libgcc References: <1310058332.10986.2616.camel@hpsje.cup.hp.com> <1310078773.10986.2627.camel@hpsje.cup.hp.com> <1310491090.10986.2693.camel@hpsje.cup.hp.com> <1310594583.10986.2819.camel@hpsje.cup.hp.com> <1311009267.10986.2913.camel@hpsje.cup.hp.com> <1311200783.10986.2969.camel@hpsje.cup.hp.com> <1311359792.10986.3038.camel@hpsje.cup.hp.com> <1311370396.10986.3108.camel@hpsje.cup.hp.com> Date: Mon, 25 Jul 2011 17:07:00 -0000 In-Reply-To: <1311370396.10986.3108.camel@hpsje.cup.hp.com> (Steve Ellcey's message of "Fri, 22 Jul 2011 14:33:16 -0700") 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 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-07/txt/msg02183.txt.bz2 Steve, > Well, I see "-Wl,--version-script=libgcc.map" on the link line now but I > still get an error during the link: > > /wsp/sje/gcc_git/gcc-ia64-debian-linux-gnu-gcc/ia64-debian-linux-gnu/bin/ld: ./libgcc_s.so.1.tmp: version node not found for symbol _Unwind_GetBSP@GCC_3.3.2 > /wsp/sje/gcc_git/gcc-ia64-debian-linux-gnu-gcc/ia64-debian-linux-gnu/bin/ld: failed to set dynamic section sizes: Bad value > collect2: error: ld returned 1 exit status > make[3]: *** [libgcc_s.so] Error 1 > make[3]: Leaving directory `/wsp/sje/gcc_git/build-ia64-debian-linux-gnu-gcc/obj_gcc/ia64-debian-linux-gnu/libgcc' > make[2]: *** [all-stage1-target-libgcc] Error 2 > make[2]: Leaving directory `/wsp/sje/gcc_git/build-ia64-debian-linux-gnu-gcc/obj_gcc' > make[1]: *** [stage1-bubble] Error 2 > make[1]: Leaving directory `/wsp/sje/gcc_git/build-ia64-debian-linux-gnu-gcc/obj_gcc' > make: *** [bootstrap] Error 2 > > I think the contents of the map file may be wrong. This error involves a different symbol then when the > mapfile was missing. I'm convinced now that this is the wrong approach. All we need for libunwind is a couple of common definitions that happen to only live in t-slibgcc at the moment. But including t-slibgcc and dependencies opens a can of worms, so it's far easier to just provide the definitions t-libunwind-elf needs ourselves. So could you * remove all the t-slibgcc* and related files (t-linux) from tmake_file in libgcc/config.host and * add the following at the top of libgcc/config/t-libunwind-elf: SHLIB_SOLINK = @shlib_base_name@.so SHLIB_OBJS = @shlib_objs@ SHLIB_DIR = @multilib_dir@ SHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@ As you can see, these four variables (the only SHLIB_* ones t-libunwind-elf uses) are substituted by libgcc/Makefile.in and are completely generic. I'll be working on the SHLIB_* move to toplevel libgcc next, so if all else fails, we could handle all that SHLIB stuff there. Thanks. Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University