From owner-freebsd-questions@FreeBSD.ORG Tue Jan 24 07:30:30 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 569A31065678 for ; Tue, 24 Jan 2012 07:30:30 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1C4CB8FC15 for ; Tue, 24 Jan 2012 07:30:29 +0000 (UTC) Received: by iagz16 with SMTP id z16so8890416iag.13 for ; Mon, 23 Jan 2012 23:30:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=YixFvZFjP24VAiJSoG36nFAMfWUUBM6c/jX892S+dYg=; b=NjO4QAJ4VeXdwC0o6PttdAwGJ0qsOUFML5YuLq4f1jtPF/SDkTXJSbOJ73FUrqX1vP ZycnJ7rZAu5Cfpn1nez1QgnGhstTf8iH5Gs1u2rwnckVU0mxU3bRfwGzUsl/Sb1mfQYg YvzCIsi5D3j+NqOTNgjHWqUh305C2WOidDB0E= Received: by 10.50.57.234 with SMTP id l10mr13343394igq.12.1327390229458; Mon, 23 Jan 2012 23:30:29 -0800 (PST) Received: from [192.168.1.3] (c-98-212-197-29.hsd1.il.comcast.net. [98.212.197.29]) by mx.google.com with ESMTPS id l28sm55823935ibc.3.2012.01.23.23.30.27 (version=SSLv3 cipher=OTHER); Mon, 23 Jan 2012 23:30:28 -0800 (PST) Message-ID: <4F1E5E13.2070803@gmail.com> Date: Tue, 24 Jan 2012 01:30:27 -0600 From: Joshua Isom User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Using non-gcc linker? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jan 2012 07:30:30 -0000 On 1/23/2012 3:47 PM, Pierre-Luc Drouin wrote: > Hi, > > I just "made" world and kernel using clang, but I noticed that ld is still > using the GNU ld. The page > http://wiki.freebsd.org/BuildingFreeBSDWithClangmentions using a > different linker that supports LTO optimisation. Is that > non-GNU linker part of FreeBSD 9? > > Thanks! > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" It's a newer gnu ld that supports plugins. The plugin handles the LTO. It might be possible to compile to bytecode, link and optimize with llvm-ld. It might still need gnu ld to create a final binary.