This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch RFA] support 'deterministic mode' in ar


Hi Chris,

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

        * bfd.c (BFD_DETERMINISTIC_OUTPUT): New flag.
        * bfd-in2.h: Regenerate.
        * ar.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.

[binutils/ChangeLog]
2009-03-06  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-06  Chris Demetriou  <cgd@google.com>

* binutils-all/ar.exp (deterministic_archive): New test.

Approved - please apply.


Cheers
  Nick


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]