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: Andreas Schwab <schwab at linux-m68k dot org>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: "H.J. Lu" <hjl dot tools at gmail dot com>, gdb-patches at sourceware dot org
- Date: Sun, 13 Jun 2010 21:58:30 +0200
- Subject: Re: [patch] Smaller gdb: -rdynamic -> -Wl,--dynamic-list
- References: <20100513131840.GA31032@host0.dyn.jankratochvil.net> <AANLkTin4ZlIvdh7BXyfsuBj9oBmCJpHEYwhxukRqaVYu@mail.gmail.com> <20100516180828.GA6448@host0.dyn.jankratochvil.net>
Jan Kratochvil <jan.kratochvil@redhat.com> writes:
> --- a/gdb/configure.ac
> +++ b/gdb/configure.ac
> @@ -1312,6 +1312,30 @@ dnl Note that we only want this if we are both native (host == target),
> dnl and not doing a canadian cross build (build == host).
>
> if test ${build} = ${host} -a ${host} = ${target} ; then
> + if test "$GCC" = "yes" ; then
> + # The dynamically loaded libthread_db needs access to symbols in the gdb
> + # executable. Older GNU ld supports --export-dynamic but --dynamic-list
> + # may not be supported there.
> + AC_MSG_CHECKING(for the dynamic export flag)
Why only for non-canadian-cross builds? Previously -rdynamic was used
for any native configuration, now you can no longer cross-build a
working gdb.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."