Deterministic Archives

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Jan 31 09:44:06 UTC 2013


Hello,

the GNU AR program as a 'D' option 
(http://sourceware.org/binutils/docs-2.23.1/binutils/ar-cmdline.html#ar-cmdline):

[...]
`D'
     Operate in deterministic mode. When adding files and the archive index use 
zero for UIDs, GIDs, timestamps, and use consistent file modes for all files. 
When this option is used, if ar is used with identical options and identical 
input files, multiple runs will create identical output files regardless of the 
input files' owners, groups, file modes, or modification times.

     If binutils was configured with --enable-deterministic-archives, then this 
mode is on by default. It can be disabled with the `U' modifier, below.
[...]

We should consider to add this configure option to the standard tool chain 
build.  This helps to avoid artificial differences in library files.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list