From owner-svn-src-projects@FreeBSD.ORG Tue Nov 2 09:52:03 2010 Return-Path: <owner-svn-src-projects@FreeBSD.ORG> Delivered-To: svn-src-projects@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56B7E106564A; Tue, 2 Nov 2010 09:52:03 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 14F458FC15; Tue, 2 Nov 2010 09:52:03 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:88e2:8a04:2da6:ead5] (unknown [IPv6:2001:7b8:3a7:0:88e2:8a04:2da6:ead5]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 80FB75C5A; Tue, 2 Nov 2010 10:51:59 +0100 (CET) Message-ID: <4CCFDF47.4060400@FreeBSD.org> Date: Tue, 02 Nov 2010 10:52:07 +0100 From: Dimitry Andric <dim@FreeBSD.org> Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.12pre) Gecko/20101016 Lanikai/3.1.6pre MIME-Version: 1.0 To: Roman Divacky <rdivacky@FreeBSD.org> References: <201011012020.oA1KKVq5087117@svn.freebsd.org> <20101102081424.GA57515@freebsd.org> In-Reply-To: <20101102081424.GA57515@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-projects@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r214647 - in projects/binutils-2.17: sys/boot/i386/efi sys/conf usr.sbin/ndiscvt X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" <svn-src-projects.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/svn-src-projects>, <mailto:svn-src-projects-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/svn-src-projects> List-Post: <mailto:svn-src-projects@freebsd.org> List-Help: <mailto:svn-src-projects-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/svn-src-projects>, <mailto:svn-src-projects-request@freebsd.org?subject=subscribe> X-List-Received-Date: Tue, 02 Nov 2010 09:52:03 -0000 On 2010-11-02 09:14, Roman Divacky wrote: > On Mon, Nov 01, 2010 at 08:20:31PM +0000, Dimitry Andric wrote: >> Author: dim >> Date: Mon Nov 1 20:20:31 2010 >> New Revision: 214647 >> URL: http://svn.freebsd.org/changeset/base/214647 >> >> Log: >> Use new output format 'elf64-x86-64-freebsd' instead of 'elf64-x86-64', >> and similarly 'elf64-sparc-freebsd' instead of 'elf64-sparc'. > > is there any reason why we do this? Yes, the reason is that newer binutils work this way, and otherwise they will not work, and complain they cannot find the correct BFD at runtime. In newer binutils, 'elf64-x86-64' is generic, and 'elf-x86-64-freebsd' is freebsd-specific. Previously we needed a hack (elf-fbsd-brand.c) to bolt on detection of FreeBSD ELF files (using the OSABI field), but that hack is no longer needed, except for ia64. I may even fix that one, so we can drop the hack. :) > this effectively prevents 3rd party > compilers (their driver) from working out of the box on freebsd.. > as they expect the format to be elfX-FOO wihtout the -freebsd suffix Then they should be adapted to cope with newer binutils than from >3 years ago. :) E.g. something like: if platform==FreeBSD then strcat(output_format, "-freebsd") Also, for i386 the output format has always been elf-i386-freebsd, so this change only makes it more consistent, really. The same goes for sparc64, where the output format name has been changed from (generic) 'elf64-sparc' to 'elf64-sparc-freebsd'.