From owner-freebsd-current@FreeBSD.ORG Fri Nov 16 15:41:13 2012 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 679F34A1; Fri, 16 Nov 2012 15:41:13 +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 1C1808FC0C; Fri, 16 Nov 2012 15:41:13 +0000 (UTC) Received: from [192.168.0.6] (spaceball.home.andric.com [192.168.0.6]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 2B1415C59; Fri, 16 Nov 2012 16:41:12 +0100 (CET) Message-ID: <50A65E9C.4000704@FreeBSD.org> Date: Fri, 16 Nov 2012 16:41:16 +0100 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Daniel Braniss Subject: Re: compiler info in kernel identification string References: <20121113234303.GA15319@dft-labs.eu> <50A3639C.9050200@FreeBSD.org> <1352907497.1217.147.camel@revolution.hippie.lan> <50A57623.4020108@FreeBSD.org> <50A5EC7C.5050303@FreeBSD.org> <5B4DE1FD-5DD3-49A5-B8DB-6D4C03ABD742@cederstrand.dk> <50A606E7.5000302@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Ian Lepore , Mateusz Guzik , Erik Cederstrand , Andriy Gapon , freebsd-current@FreeBSD.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2012 15:41:13 -0000 On 2012-11-16 11:00, Daniel Braniss wrote: >> on 16/11/2012 11:20 Erik Cederstrand said the following: >>> Den 16/11/2012 kl. 08.34 skrev Andriy Gapon : ... >>> hostname, username, timestamp, absolute path etc. are a nuisance if they >>> can't be turned off with -fno-ident, -frandom-seed, -DSTRIP_FBSDID, ar -D and >>> the like. > the question as to what compiler was used to compile the kernel is a bit of an > oxymoron, since the kernel is made up of many different modules, which get > compiled > either by different compilers, or different compiler flags. Yes, but in practice this seldom happens. In Linux they also just print one compiler identification string at bootup, basically the compiler which the main Makefile used. > since the compiler does 'sign' the modules it compiles (and clang will/should > do it soon: http://llvm.org/bugs/show_bug.cgi?id=7292) some tool like > file(1) could be modified to provide it, or config -x (8) ... Well, gcc does this, and you get all the .comment sections merged into the final kernel executable, but identifying it from there is a bit messy. A simple sysctl is just handier. And regarding clang, I don't have the time to implement this very soon, and I doubt it is very high on the bug priority list with upstream either. They just branched for the 3.2 release, and they are much busier squashing bugs now. :) > IMHO, the only meaningfull information added to uname was the svn/git(and > hopefully hg) rev. version. AFAIK newvers.sh only handles svn and git.