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

Andreas Schwab
2010-06-13T19:58:43Z

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."