From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28350 invoked by alias); 13 Jun 2010 19:58:43 -0000 Received: (qmail 28340 invoked by uid 22791); 13 Jun 2010 19:58:42 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_05,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 13 Jun 2010 19:58:33 +0000 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id E155B1C158CD; Sun, 13 Jun 2010 21:58:30 +0200 (CEST) Received: from igel.home (ppp-88-217-111-118.dynamic.mnet-online.de [88.217.111.118]) by mail.mnet-online.de (Postfix) with ESMTP id D3A011C00288; Sun, 13 Jun 2010 21:58:30 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id 6990DCA297; Sun, 13 Jun 2010 21:58:30 +0200 (CEST) From: Andreas Schwab To: Jan Kratochvil Cc: "H.J. Lu" , gdb-patches@sourceware.org Subject: Re: [patch] Smaller gdb: -rdynamic -> -Wl,--dynamic-list References: <20100513131840.GA31032@host0.dyn.jankratochvil.net> <20100516180828.GA6448@host0.dyn.jankratochvil.net> X-Yow: I guess it was all a DREAM.. or an episode of HAWAII FIVE-O... Date: Sun, 13 Jun 2010 19:58:00 -0000 In-Reply-To: <20100516180828.GA6448@host0.dyn.jankratochvil.net> (Jan Kratochvil's message of "Sun, 16 May 2010 20:08:28 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-06/txt/msg00297.txt.bz2 Jan Kratochvil writes: > --- a/gdb/configure.ac > +++ b/gdb/configure.ac > @@ -1312,6 +1312,30 @@ dnl Note that we only want this if we are both native (host == target), > dnl and not doing a canadian cross build (build == host). > > if test ${build} = ${host} -a ${host} = ${target} ; then > + if test "$GCC" = "yes" ; then > + # The dynamically loaded libthread_db needs access to symbols in the gdb > + # executable. Older GNU ld supports --export-dynamic but --dynamic-list > + # may not be supported there. > + AC_MSG_CHECKING(for the dynamic export flag) Why only for non-canadian-cross builds? Previously -rdynamic was used for any native configuration, now you can no longer cross-build a working gdb. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."