cvs commit: src/sys/dev/em if_em.c if_em.h
imp at bsdimp.com
Fri Aug 4 16:14:59 UTC 2006
From: Colin Percival <cperciva at 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:
> 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.
More information about the cvs-src