This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Smaller gdb: -rdynamic -> -Wl,--dynamic-list


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]