* arsup.c (ar_save): Respect the deterministic setting when
authorNick Clifton <nickc@redhat.com>
Tue, 1 Oct 2013 13:44:37 +0000 (13:44 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 1 Oct 2013 13:44:37 +0000 (13:44 +0000)
reading from an mri script.
* ar.c (main): Set the default deterministic mode when reading
from an mri script.

binutils/ChangeLog
binutils/ar.c
binutils/arsup.c

index 761d2a3a573be481e3edeeb34e1ecbe968439db3..a6815f3076601ed25701196943383128038fd20d 100644 (file)
@@ -1,3 +1,10 @@
+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.
index 987b46cb0e7e0c8447fa3a6969cd4893d91577fb..a11ed15c86bcbe7dbc7f2734e157977cdfabdcab 100644 (file)
@@ -737,6 +737,7 @@ main (int argc, char **argv)
 
   if (mri_mode)
     {
+      default_deterministic ();
       mri_emul ();
     }
   else
index 9ddc55d64a32d86f62da046dbae61a7ab248549a..9c6953ef8d9d216e158b562eb1f0ea68bf2cc3ae 100644 (file)
@@ -1,6 +1,5 @@
 /* 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.
 
@@ -39,6 +38,7 @@ static void ar_directory_doer (bfd *, bfd *);
 static void ar_addlib_doer (bfd *, bfd *);
 
 extern int verbose;
+extern int deterministic;
 
 static bfd *obfd;
 static char *real_name;
@@ -334,6 +334,9 @@ ar_save (void)
     {
       char *ofilename = xstrdup (bfd_get_filename (obfd));
 
+      if (deterministic > 0)
+        obfd->flags |= BFD_DETERMINISTIC_OUTPUT;
+
       bfd_close (obfd);
 
       smart_rename (ofilename, real_name, 0);
This page took 0.042743 seconds and 4 git commands to generate.