Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Aug 2006 10:11:39 -0600 (MDT)
From:      Warner Losh <imp@bsdimp.com>
To:        cperciva@FreeBSD.org
Cc:        src-committers@FreeBSD.org, yar@comp.chem.msu.su, cvs-all@FreeBSD.org, stefanf@FreeBSD.org, pdeuskar@FreeBSD.org, cvs-src@FreeBSD.org
Subject:   Re: cvs commit: src/sys/dev/em if_em.c if_em.h
Message-ID:  <20060804.101139.71187145.imp@bsdimp.com>
In-Reply-To: <44D301FE.6030007@freebsd.org>
References:  <20060804072323.GC89735@wombat.fafoe.narf.at> <20060804074657.GT97316@comp.chem.msu.su> <44D301FE.6030007@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
From: Colin Percival <cperciva@FreeBSD.org>
Subject: Re: cvs commit: src/sys/dev/em if_em.c if_em.h
Date: Fri, 04 Aug 2006 01:14:54 -0700

> Yar Tikhiy wrote:
> > Yeah, it's a thing to watch out for.  As are __TIME__ and __DATE__.
> 
> FWIW, the following files in 6.1-RELEASE/i386 contain build timestamps:
> 
> /boot/GENERIC/hptmv.ko
> /boot/GENERIC/kernel
> /boot/SMP/hptmv.ko
> /boot/SMP/kernel
> /boot/loader
> /boot/pxeboot
> /etc/mail/freebsd.cf
> /etc/mail/freebsd.submit.cf
> /etc/mail/sendmail.cf
> /etc/mail/submit.cf
> /lib/libcrypto.so.4
> /usr/bin/ntpq
> /usr/include/osreldate.h
> /usr/sbin/amd
> /usr/sbin/iasl
> /usr/sbin/isdnd
> /usr/sbin/isdndebug
> /usr/sbin/isdnmonitor
> /usr/sbin/isdnphone
> /usr/sbin/isdntelctl
> /usr/sbin/lwresd
> /usr/sbin/named
> /usr/sbin/ntpd
> /usr/sbin/ntpdate
> /usr/sbin/ntpdc
> /usr/sbin/ppp
> 
> Of these, I've recently removed the timestamps in /usr/sbin/isdn*, and
> dougb has a patch to remove the timestamps in lwresd and named.
> 
> There are also timestamps in all of the library archive files, but those
> are required by the archive format, so we can't do much about them.

All static binaries on the system, in current, have the entire path to
where the source code was built encoded into.  This is due to an
assert being used in malloc and other code which expands __FILE__,
which gives you the entire path.  Since we don't compile with
-DNDEBUG, we expose ourselves to this.

I have in my local tree a knob that allows one to turn on compiling
with -DNDEBUG that I didn't have time to integrate before my move.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060804.101139.71187145.imp>