From owner-svn-src-head@freebsd.org Sun Jun 28 10:10:29 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 321B998C351; Sun, 28 Jun 2015 10:10:29 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B098F12F3; Sun, 28 Jun 2015 10:10:28 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::e8c4:d779:5bf1:150a] (unknown [IPv6:2001:7b8:3a7:0:e8c4:d779:5bf1:150a]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id C6E0D1DE59; Sun, 28 Jun 2015 12:10:26 +0200 (CEST) Subject: Re: svn commit: r284898 - in head: . share/mk Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Content-Type: multipart/signed; boundary="Apple-Mail=_61E8D8B5-0D61-4C54-8257-A10FE486E345"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.5 From: Dimitry Andric In-Reply-To: <20150628095504.GD68142@ivaldir.etoilebsd.net> Date: Sun, 28 Jun 2015 12:10:34 +0200 Cc: "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" , NGie Cooper Message-Id: <73CB91C5-3A0B-466C-A169-2193B1232F0F@FreeBSD.org> References: <201506272328.t5RNSvQS063168@svn.freebsd.org> <260A448A-7195-49E6-8CCD-9F0753B61A18@gmail.com> <20150628074103.GA68142@ivaldir.etoilebsd.net> <20150628074931.GB68142@ivaldir.etoilebsd.net> <20150628085714.GC68142@ivaldir.etoilebsd.net> <20150628095504.GD68142@ivaldir.etoilebsd.net> To: Baptiste Daroussin X-Mailer: Apple Mail (2.2098) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jun 2015 10:10:29 -0000 --Apple-Mail=_61E8D8B5-0D61-4C54-8257-A10FE486E345 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 28 Jun 2015, at 11:55, Baptiste Daroussin wrote: >=20 > On Sun, Jun 28, 2015 at 11:48:48AM +0200, Dimitry Andric wrote: >> On 28 Jun 2015, at 10:57, Baptiste Daroussin = wrote: >>>=20 >>> On Sun, Jun 28, 2015 at 01:44:21AM -0700, NGie Cooper wrote: >>>> On Sun, Jun 28, 2015 at 12:49 AM, Baptiste Daroussin = wrote: >>>> ... >>>>> Not at all I have this on a both where I haven't yet r284898 iirc = it is like >>>>> this since the beginning I do not remember seeing those ld scripts = with absolute >>>>> path. >>>>=20 >>>> $ cat /usr/lib/libc.so >>>> /* $FreeBSD$ */ >>>> GROUP ( /lib/libc.so.7 /usr/lib/libc_nonshared.a = /usr/lib/libssp_nonshared.a ) >>>> $ what -q /boot/GENERIC.r283337+9c333ed/kernel >>>> FreeBSD 11.0-CURRENT #4 r283337+9c333ed(isilon-atf): Tue May 26 >>>> 21:49:09 PDT 2015 >>>=20 >>> Yes you are right, I was looking at the wrong place. >>=20 >> What is actually the perceived problem with having paths in those = linker >> scripts? If you use --sysroot, the libraries are searched relative = to >> that sysroot, right? >>=20 >> (And yes, I know our gcc's sysroot implementation is broken. So = please >> fix that instead. :-) >>=20 > WHat is the point in having absolute path in the linker script? Of course, the point is to know exactly *which* libraries you are going to link in. E.g., those with the specified paths, and not any other. > having an > absolute patch (or even no path at all) will make the compiler looking = in its > search path (and respecting sysroot). I think you meant "relative path" here? I'm not sure if relative names like ../../foo/libbar.so will work with path searches, though. > The only case where a path is needed seems > to be when the lib you want to link to is not in the search path. Am I = missing > something? You're not missing anything. Some people just seem to prefer exact paths, while others trust in search mechanisms (and the risk that the wrong library is accidentally picked up). FWIW, I don't mind removing the absolute paths in these scripts, but I was simply interested in what problems people encountered due to them. -Dimitry --Apple-Mail=_61E8D8B5-0D61-4C54-8257-A10FE486E345 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.27 iEYEARECAAYFAlWPyCEACgkQsF6jCi4glqMtmACgw82bQge3+sbYFGOAjmkmaM/t qRkAn1/U0rRiGmJuzI1xEVO5LaqHobMA =aVOv -----END PGP SIGNATURE----- --Apple-Mail=_61E8D8B5-0D61-4C54-8257-A10FE486E345--