[bfd/ChangeLog]
authorChris Demetriou <cgd@google.com>
Wed, 11 Mar 2009 04:36:40 +0000 (04:36 +0000)
committerChris Demetriou <cgd@google.com>
Wed, 11 Mar 2009 04:36:40 +0000 (04:36 +0000)
commit36e4dce69dd23bea9ea2258dea35f034b6d6351c
treeafd2a795b17ed76d0f5353a5ed752bc483c1a929
parenta07dbd482b9c6d2c8e0e60409bfbb47f6f67c013
[bfd/ChangeLog]
2009-03-11  Chris Demetriou  <cgd@google.com>

* bfd.c (BFD_DETERMINISTIC_OUTPUT): New flag.
* bfd-in2.h: Regenerate.
* archive.c (bfd_ar_hdr_from_filesystem): If BFD_DETERMINISTIC_OUTPUT
flag is set, use 0 for uid, gid, and timestamp, and use 0644 for file
mode.
(bsd_write_armap): Likewise.
(_bfd_archive_bsd_update_armap_timestamp): If BFD_DETERMINISTIC_OUTPUT
flag is set, do nothing.
(coff_write_armap): If BFD_DETERMINISTIC_OUTPUT flag is set, use 0
for timestamp.

[binutils/ChangeLog]
2009-03-11  Chris Demetriou  <cgd@google.com>

* ar.c (deterministic): New global variable.
(main): Recognize new 'D' option, which enables 'deterministic mode'.
(usage): Document new 'D' option.
(write_archive): Set BFD_DETERMINISTIC_OUTPUT in output archive's
flags if deterministic mode was requested.
* doc/binutils.texi (ar): Document deterministic mode ('D' option).

[binutils/testsuite/ChangeLog]
2009-03-11  Chris Demetriou  <cgd@google.com>

* binutils-all/ar.exp (deterministic_archive): New test.
bfd/ChangeLog
bfd/archive.c
bfd/bfd-in2.h
bfd/bfd.c
binutils/ChangeLog
binutils/ar.c
binutils/doc/binutils.texi
binutils/testsuite/ChangeLog
binutils/testsuite/binutils-all/ar.exp