From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6644 invoked by alias); 11 Mar 2013 18:52:54 -0000 Received: (qmail 6635 invoked by uid 22791); 11 Mar 2013 18:52:53 -0000 X-SWARE-Spam-Status: No, hits=-7.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_SPAMHAUS_DROP,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_LN X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 11 Mar 2013 18:52:35 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r2BIqY1j015672 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 11 Mar 2013 14:52:34 -0400 Received: from host2.jankratochvil.net (ovpn-116-26.ams2.redhat.com [10.36.116.26]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r2BIqUwN018966 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 11 Mar 2013 14:52:33 -0400 Date: Mon, 11 Mar 2013 18:52:00 -0000 From: Jan Kratochvil To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: [commit] [RFA PATCH] Fix --dynamic-list test's workaround for http://bugs.python.org/issue4434. Message-ID: <20130311185230.GA28393@host2.jankratochvil.net> References: <20130307231400.13859.88836.stgit@brno.lan> <20130311181407.GA24981@host2.jankratochvil.net> <513E23F5.5000702@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <513E23F5.5000702@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2013-03/txt/msg00485.txt.bz2 On Mon, 11 Mar 2013 19:35:33 +0100, Pedro Alves wrote: > Ah yes, LIBS, of course. Please go ahead. Checked in: http://sourceware.org/ml/gdb-cvs/2013-03/msg00095.html > > ../readline/libreadline.a ../opcodes/libopcodes.a ../bfd/libbfd.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -ldl -ldl -lncurses -lz -lm -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -lexpat -llzma ../libiberty/libiberty.a build-gnulib/import/libgnu.a -ldl -Wl,--dynamic-list=./proc-service.list > > Bummer. > > > The real fix to reduce the stripped GDB binary by 1MB of .dynsym back again > > after it was regressed by Python would be to drop gdb/proc-service.list, add > > gcc parameter -fvisibility=hidden and mark all the exported symbols (currently > > in gdb/proc-service.list) by __attribute__ ((visibility ("default"))). > > > > At least I hope that -fvisibility=hidden won't break Python on the other hand. > > Did you try: > > - RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list' > + RDYNAMIC='-Wl,--no-export-dynamic -Wl,--dynamic-list=$(srcdir)/proc-service.list' > > ? I did not try as that would break the Python's intention of LINKFORSHARED's -export-dynamic. While I hope -fvisibility=hidden would not break it as it applies only to cc1 and not ld. This is all sure primarily a Python bug breaking any app it links with it, this discussion is just about how to workaround it when they were unable to fix it in 2.5 years: http://bugs.python.org/issue10112 Jan