From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17164 invoked by alias); 13 May 2010 13:27:02 -0000 Received: (qmail 17141 invoked by uid 22791); 13 May 2010 13:27:01 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_RW,TW_WX X-Spam-Check-By: sourceware.org Received: from mail-vw0-f41.google.com (HELO mail-vw0-f41.google.com) (209.85.212.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 13 May 2010 13:26:49 +0000 Received: by vws7 with SMTP id 7so1353677vws.0 for ; Thu, 13 May 2010 06:26:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.63.78 with SMTP id a14mr2236306vci.144.1273757207516; Thu, 13 May 2010 06:26:47 -0700 (PDT) Received: by 10.220.100.77 with HTTP; Thu, 13 May 2010 06:26:47 -0700 (PDT) In-Reply-To: <20100513131840.GA31032@host0.dyn.jankratochvil.net> References: <20100513131840.GA31032@host0.dyn.jankratochvil.net> Date: Thu, 13 May 2010 15:47:00 -0000 Message-ID: Subject: Re: [patch] Smaller gdb: -rdynamic -> -Wl,--dynamic-list From: "H.J. Lu" To: Jan Kratochvil Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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-05/txt/msg00274.txt.bz2 On Thu, May 13, 2010 at 6:18 AM, Jan Kratochvil wrote: > Hi, > > gdb currently has needlessly huge .dynsym and thus even huge the (on-dema= nd > loaded) LOAD segment. =A0With the attached patch it gets smaller: > > -rwxr-xr-x 1 4524488 gdb-7.1-19.fc13.x86_64/usr/bin/gdb > -rwxr-xr-x 1 4266728 gdb-7.1-19dynamiclist.fc13.x86_64/usr/bin/gdb > -rw-r--r-- 1 2364656 gdb-7.1-19.fc13.x86_64.rpm > -rw-r--r-- 1 2274300 gdb-7.1-19dynamiclist.fc13.x86_64.rpm > > I am not sure with the gdbserver/Makefile.in new CDEPS there. =A0I have n= ot > found it defined anywhere while it is used as the gdbserver target depend= ency. > > I hope on the build hosts where -rdynamic was supported even > -Wl,--dynamic-list must be supported. > > ps_get_thread_area is not always defined while the proc-service.list file > lists it. =A0GNU ld does not seem to be concerned by undefined symbols. > > No regressions on {x86_64,x86_64-m32,i686}-fedora12-linux-gnu. > > FWIW, --dynamic-list was added in Sept., 2006 and a bug was fixed in Oct., = 2006. --=20 H.J.