+2013-10-01  Cory Fields  <cory@coryfields.com>
+
+       * arsup.c (ar_save): Respect the deterministic setting when
+       reading from an mri script.
+       * ar.c (main): Set the default deterministic mode when reading
+       from an mri script.
+
 2013-10-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
 
        * dwarf.c (SAFE_BYTE_GET): Fix argument check.
 
 /* arsup.c - Archive support for MRI compatibility
-   Copyright 1992, 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2003,
-   2004, 2005, 2007, 2008 Free Software Foundation, Inc.
+   Copyright 1992-2013 2008 Free Software Foundation, Inc.
 
    This file is part of GNU Binutils.
 
 static void ar_addlib_doer (bfd *, bfd *);
 
 extern int verbose;
+extern int deterministic;
 
 static bfd *obfd;
 static char *real_name;
     {
       char *ofilename = xstrdup (bfd_get_filename (obfd));
 
+      if (deterministic > 0)
+        obfd->flags |= BFD_DETERMINISTIC_OUTPUT;
+
       bfd_close (obfd);
 
       smart_rename (ofilename, real_name, 0);