From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15603 invoked by alias); 17 Feb 2014 02:17:33 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 15593 invoked by uid 89); 17 Feb 2014 02:17:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,T_FRT_FREE autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 17 Feb 2014 02:17:30 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1WFDlv-0002u1-3q from Yao_Qi@mentor.com ; Sun, 16 Feb 2014 18:17:27 -0800 Received: from SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 16 Feb 2014 18:17:27 -0800 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.2.247.3; Sun, 16 Feb 2014 18:16:02 -0800 Message-ID: <530170C7.9020803@codesourcery.com> Date: Mon, 17 Feb 2014 02:17:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Thomas Schwinge CC: , Subject: Re: [PATCH 3/3] Find and link with -lmachuser -lhurduser References: <1391759958-972-1-git-send-email-yao@codesourcery.com> <1391759958-972-4-git-send-email-yao@codesourcery.com> <87a9drv6o6.fsf@kepler.schwinge.homeip.net> In-Reply-To: <87a9drv6o6.fsf@kepler.schwinge.homeip.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00519.txt.bz2 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. > ( > and the thread starting at > > 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 (齐尧)