From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17235 invoked by alias); 5 Jun 2010 02:48:43 -0000 Received: (qmail 17227 invoked by uid 22791); 5 Jun 2010 02:48:42 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 05 Jun 2010 02:48:38 +0000 Received: from kpbe12.cbf.corp.google.com (kpbe12.cbf.corp.google.com [172.25.105.76]) by smtp-out.google.com with ESMTP id o552mada008392 for ; Fri, 4 Jun 2010 19:48:36 -0700 Received: from gwaa12 (gwaa12.prod.google.com [10.200.27.12]) by kpbe12.cbf.corp.google.com with ESMTP id o552mZQM007708 for ; Fri, 4 Jun 2010 19:48:35 -0700 Received: by gwaa12 with SMTP id a12so182707gwa.27 for ; Fri, 04 Jun 2010 19:48:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.90.10.40 with SMTP id 40mr5372531agj.168.1275706114010; Fri, 04 Jun 2010 19:48:34 -0700 (PDT) Received: by 10.90.37.13 with HTTP; Fri, 4 Jun 2010 19:48:33 -0700 (PDT) In-Reply-To: <20100528185211.GA30412@host0.dyn.jankratochvil.net> References: <20100513131840.GA31032@host0.dyn.jankratochvil.net> <20100516180828.GA6448@host0.dyn.jankratochvil.net> <20100528185211.GA30412@host0.dyn.jankratochvil.net> Date: Sat, 05 Jun 2010 02:48:00 -0000 Message-ID: Subject: Re: [patch] Smaller gdb: -rdynamic -> -Wl,--dynamic-list From: Doug Evans To: Jan Kratochvil Cc: Tom Tromey , gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes 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/msg00152.txt.bz2 On Fri, May 28, 2010 at 11:52 AM, Jan Kratochvil wrote: > On Thu, 27 May 2010 21:54:34 +0200, Tom Tromey wrote: >> >>>>> "Jan" =3D=3D Jan Kratochvil writes: >> >> Jan> gdb/ >> Jan> 2010-05-16 =A0Jan Kratochvil =A0 >> Jan> gdb/gdbserver/ >> Jan> 2010-05-16 =A0Jan Kratochvil =A0 >> This is ok. =A0Thanks. > > Checked-in: > =A0 =A0 =A0 =A0http://sourceware.org/ml/gdb-cvs/2010-05/msg00247.html I've been playing with this a bit and got the following: "ImportError: /usr/grte/v1/k8-linux/lib/python2.4/lib-dynload/itertools.so: undefined symbol: PyExc_StopIteration" when I did "import itertools". I was statically linking libpythonX.Y.a. I'm not sure what the right fix is. IWBN if the python folks have anticipated this and provide something like proc-service.list for python. I don't know all the python symbols that need to be exported ... maybe there's a simple regexp (or a small number of them) that could find them all. [OTOH it might be a bit too fragile.] Alternatively, one could disable this feature when python is being linked statically.