Bug#795784: ocamlopt startup file randomness ends up in final executable
Package: ocaml
Version: 4.01.0-5
User: reproducible-builds@lists.alioth.debian.org
Usertags: toolchain randomness
Files generated by ocamlopt are not reproducible:
> $ touch toto.ml
> $ ocamlopt -o a toto.ml
> $ ocamlopt -o b toto.ml
> $ diff -u <(readelf -a a) <(readelf -a b)
> --- /proc/self/fd/11 2015-08-16 21:34:48.321396736 +0200
> +++ /proc/self/fd/12 2015-08-16 21:34:48.321396736 +0200
> @@ -388,7 +388,7 @@
> 37: 000000000061c008 0 OBJECT LOCAL DEFAULT 19 __do_global_dtors_aux_fin
> 38: 0000000000401e80 0 FUNC LOCAL DEFAULT 13 frame_dummy
> 39: 000000000061c000 0 OBJECT LOCAL DEFAULT 18 __frame_dummy_init_array_
> - 40: 0000000000000000 0 FILE LOCAL DEFAULT ABS /tmp/camlstartup0c4347.o
> + 40: 0000000000000000 0 FILE LOCAL DEFAULT ABS /tmp/camlstartupaea514.o
> 41: 0000000000414190 0 NOTYPE LOCAL DEFAULT 15 caml_negf_mask
> 42: 00000000004141a0 0 NOTYPE LOCAL DEFAULT 15 caml_absf_mask
> 43: 0000000000000000 0 FILE LOCAL DEFAULT ABS /usr/lib/ocaml/std_exit.o
Cheers,
--
Stéphane
Reply to: