Re: compiler info in kernel identification string

看板FB_current作者時間12年前 (2013/04/27 12:33), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串25/27 (看更多)
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 <avg@freebsd.org>: .... >>> 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. _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1HUrJ_K5 (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1HUrJ_K5 (FB_current)