[patch RFA] support 'deterministic mode' in ar

Nick Clifton nickc@redhat.com
Tue Mar 10 08:54:00 GMT 2009
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



More information about the Binutils mailing list