Re: compiler info in kernel identification string

看板FB_current作者時間12年前 (2013/04/27 12:33), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串25/27 (看更多)
on 16/11/2012 11:20 Erik Cederstrand said the following: > Den 16/11/2012 kl. 08.34 skrev Andriy Gapon <avg@freebsd.org>: > >> on 16/11/2012 01:09 Dimitry Andric said the following: >>> And as I remarked in another reply, now that I have thought about it a >>> bit, I would much rather see this information moved to a sysctl or dmesg >>> line, than in uname. With the happy side effect that no existing uname >>> parsers would be confused! >> >> I would still like to have at least compiler's "base name" or type or >> something in uname. > > This has been brought up before, but what about putting all this in a > separate file, e.g. /etc/buildinfo? There is a chance this file could be out of sync with kernel. > At least I'd like this to be configurable. I'm trying to get FreeBSD code in > a shape where it can optionally produce deterministic binaries from two This is a very good goal. I also would like to see it achieved. > different builds (i.e. comparable with md5) as long as the binaries are > functionally equivalent, and "irrelevant" info like compiler version, I agree about the following items, but not about compilers / compiler versions. Different compilers can (and do) produce different binaries already (and sometimes bugs). While, indeed, time of compilation should not affect the binaries (unless the phase of the Moon plays a role). > 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. -- Andriy Gapon _______________________________________________ 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_MZ (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1HUrJ_MZ (FB_current)