From owner-freebsd-toolchain@FreeBSD.ORG Thu Dec 13 13:18:49 2012 Return-Path: Delivered-To: toolchain@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4B1DAED8; Thu, 13 Dec 2012 13:18:49 +0000 (UTC) (envelope-from erik@cederstrand.dk) Received: from csmtp2.one.com (csmtp2.one.com [91.198.169.22]) by mx1.freebsd.org (Postfix) with ESMTP id 014E58FC14; Thu, 13 Dec 2012 13:18:48 +0000 (UTC) Received: from [192.168.187.69] (unknown [87.54.33.251]) by csmtp2.one.com (Postfix) with ESMTPA id 8353C3043C3B; Thu, 13 Dec 2012 13:18:42 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: Using non-standard linker From: Erik Cederstrand In-Reply-To: <5880F938-A9EC-4B2D-8079-42504DFA87F9@FreeBSD.org> Date: Thu, 13 Dec 2012 14:18:42 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <5337BAB6-7EEE-4A1E-9660-902544CCE3EE@cederstrand.dk> References: <089FCDB5-C0D2-4675-AB71-FD7089BFA031@cederstrand.dk> <5880F938-A9EC-4B2D-8079-42504DFA87F9@FreeBSD.org> To: David Chisnall X-Mailer: Apple Mail (2.1499) Cc: "toolchain@freebsd.org" , Pete chou X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Dec 2012 13:18:49 -0000 Den 13/12/2012 kl. 14.10 skrev David Chisnall : > Hi Eric, >=20 > The easiest way of doing this is to make /usr/bin/ld (in the host = system and in the bootstrap) into a symbolic link that points to = whatever the selected linker is. I had to do this when testing gold as = well (we end up with ld-gold and ld-bfd and ld being a symlink to one of = them). Yes, a symlink is of course an easy solution post-install. But 'ld' is = built as part of 'make toolchain', I believe, so this approach wouldn't = work if I wanted mclinker to be used as the linker in 'make buildworld'. = The newly built 'ld' in /usr/obj/ would be used as the linker instead. Erik=