This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 3/3] Find and link with -lmachuser -lhurduser
- From: Yao Qi <yao at codesourcery dot com>
- To: Thomas Schwinge <thomas at codesourcery dot com>
- Cc: <gdb-patches at sourceware dot org>, <bug-hurd at gnu dot org>
- Date: Mon, 17 Feb 2014 10:15:35 +0800
- Subject: Re: [PATCH 3/3] Find and link with -lmachuser -lhurduser
- Authentication-results: sourceware.org; auth=none
- References: <1391759958-972-1-git-send-email-yao at codesourcery dot com> <1391759958-972-4-git-send-email-yao at codesourcery dot com> <87a9drv6o6 dot fsf at kepler dot schwinge dot homeip dot net>
On 02/16/2014 03:49 PM, Thomas Schwinge wrote:
> This should (currently) not be needed, for these two libraries are
> (currently) considered to be part of libc.
> (<http://www.gnu.org/software/hurd/open_issues/libmachuser_libhurduser_rpc_stubs.html>
> and the thread starting at
> <http://news.gmane.org/find-root.php?message_id=%3C20110329220143.GB5425%40const.famille.thibault.fr%3E>
> have some discussion about this.)
That is to say, this problem doesn't exist with toolchain using recent
libc. However, this link error still exists when an old toolchain is
used and it sounds unfeasible to upgrade libc to fix the link error.
Link -lmachuser and -lhurduser explicitly, as a fallback, is no harm.
I don't have a strong opinion on this patch.
>
> Can you please post your toolchain's libc.so file (that is, the text file
> of a few lines, not the binary libc.so.0.3). Am I assuming correctly
/* GNU ld script
Use the shared library, but some functions are only in
the static library, so try that secondarily. */
OUTPUT_FORMAT(elf32-i386)
GROUP ( /lib/libc.so.0.3 /usr/lib/libcrt_nonshared.a AS_NEEDED (
/lib/ld.so.1 ) )
> that this is a i686-pc-gnu toolchain that I once provided you with?
Yes.
--
Yao (éå)