Adds support for "ar -D".
* coff-rs6000.c (xcoff_write_archive_contents_old): Set default
time, uid, gid and mode for deterministic archive.
(xcoff_write_archive_contents_big): Likewise.
+2020-07-07 Alan Modra <amodra@gmail.com>
+
+ * coff-rs6000.c (xcoff_write_archive_contents_old): Set default
+ time, uid, gid and mode for deterministic archive.
+ (xcoff_write_archive_contents_big): Likewise.
+
2020-07-07 Alan Modra <amodra@gmail.com>
* coffcode.h (coff_classify_symbol): Handle C_HIDEXT and
bfd_set_error (bfd_error_system_call);
return FALSE;
}
+ if ((abfd->flags & BFD_DETERMINISTIC_OUTPUT) != 0)
+ {
+ s.st_mtime = 0;
+ s.st_uid = 0;
+ s.st_gid = 0;
+ s.st_mode = 0644;
+ }
ahdrp = bfd_zalloc (sub, sizeof (*ahdrp));
if (ahdrp == NULL)
bfd_set_error (bfd_error_system_call);
return FALSE;
}
+ if ((abfd->flags & BFD_DETERMINISTIC_OUTPUT) != 0)
+ {
+ s.st_mtime = 0;
+ s.st_uid = 0;
+ s.st_gid = 0;
+ s.st_mode = 0644;
+ }
ahdrp = bfd_zalloc (current_bfd, sizeof (*ahdrp));
if (ahdrp == NULL)