This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Smaller gdb: -rdynamic -> -Wl,--dynamic-list
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 13 May 2010 06:26:47 -0700
- Subject: Re: [patch] Smaller gdb: -rdynamic -> -Wl,--dynamic-list
- References: <20100513131840.GA31032@host0.dyn.jankratochvil.net>
On Thu, May 13, 2010 at 6:18 AM, Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
> Hi,
>
> gdb currently has needlessly huge .dynsym and thus even huge the (on-demand
> loaded) LOAD segment. ?With 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. ?I have not
> found it defined anywhere while it is used as the gdbserver target dependency.
>
> 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. ?GNU 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.
--
H.J.