From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26558 invoked by alias); 11 Jan 2013 15:02:09 -0000 Received: (qmail 26542 invoked by uid 22791); 11 Jan 2013 15:02:08 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 11 Jan 2013 15:02:02 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r0BF20rU003392 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 11 Jan 2013 10:02:01 -0500 Received: from [10.36.5.191] (vpn1-5-191.ams2.redhat.com [10.36.5.191]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r0BF1wFK007072 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 11 Jan 2013 10:02:00 -0500 Message-ID: <50F02892.5050301@redhat.com> Date: Fri, 11 Jan 2013 15:02:00 -0000 From: nick clifton User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: horseriver CC: binutils@sourceware.org Subject: Re: a simple question about link References: <20130109231210.GB6599@debian.localdomain> <50EE92BE.2050108@redhat.com> <20130110024928.GA2436@debian.localdomain> In-Reply-To: <20130110024928.GA2436@debian.localdomain> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2013-01/txt/msg00170.txt.bz2 Hi horseriver, > After installing ld , there is a folder named "ldscripts" under > ld's home directory , which can be set by --prefix configure option . > Under /usr/lib folder , there is also a folder named "ldscripts" . > what is the difference between them ? /usr/lib/ldscripts belongs to the system linker (ie /bin/ld). /lib/ldscripts belongs to the linker that you installed into , ie /bin/ld. > ld will use which ? Neither. :-) It will use the versions of these scripts that are built directly into the ld binary itself. Try running strings on the ld executable to see this. Cheers Nick