Is it feasible to cross-build compat5x binary?

Bruce Evans bde at zeta.org.au
Wed Oct 26 22:21:38 PDT 2005


On Tue, 25 Oct 2005, M. Warner Losh wrote:

> In message: <20051024064605.A44523 at cons.org>
>            Martin Cracauer <cracauer at cons.org> writes:
> : ELF object files are timestamped.  But there's some elf-cmp out there.
>
> Elf .o's are timestampped,

Script started on Thu Oct 27 15:17:31 2005
ttyv2:bde at epsplex:/tmp/z> echo "int i = 1;" >z.c
ttyv2:bde at epsplex:/tmp/z> cc -c z.c
ttyv2:bde at epsplex:/tmp/z> mv z.o z.o~
ttyv2:bde at epsplex:/tmp/z> cc -c z.c
ttyv2:bde at epsplex:/tmp/z> md5 z.o~ z.o
MD5 (z.o~) = c92e2bbb5a0e8b4f05eced238762dde1
MD5 (z.o) = c92e2bbb5a0e8b4f05eced238762dde1
ttyv2:bde at epsplex:/tmp/z> cmp z.o~ z.o
ttyv2:bde at epsplex:/tmp/z> exit

Script done on Thu Oct 27 15:18:14 2005

> but Elf executables are 100% reproducible,
> except when people go out of their way to not make them so.  Like
> adding the date or person builder.

True.

Bruce


More information about the freebsd-security mailing list