Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(742)

Unified Diff: binutils/ar.c

Issue 23903052: fix Base URL: http://git.chromium.org/native_client/nacl-binutils.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bfd/elf64-x86-64.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: binutils/ar.c
diff --git a/binutils/ar.c b/binutils/ar.c
index 5bffd50a66bb6d3306e1ae1ea2bc737d96431494..88c9d4ee4945a55b4350ab99ac4ddfd8977b3119 100644
--- a/binutils/ar.c
+++ b/binutils/ar.c
@@ -447,7 +447,9 @@ main (int argc, char **argv)
show_version = 0;
+#ifndef __native_client__
xatexit (remove_output);
+#endif
for (i = 1; i < argc; i++)
if (! ar_emul_parse_arg (argv[i]))
@@ -991,7 +993,11 @@ write_archive (bfd *iarch)
old_name = (char *) xmalloc (strlen (bfd_get_filename (iarch)) + 1);
strcpy (old_name, bfd_get_filename (iarch));
+#ifdef __native_client__
+ new_name = old_name;
+#else
new_name = make_tempname (old_name);
+#endif
if (new_name == NULL)
bfd_fatal ("could not create temporary file whilst writing archive");
@@ -1036,8 +1042,10 @@ write_archive (bfd *iarch)
/* We don't care if this fails; we might be creating the archive. */
bfd_close (iarch);
+#ifndef __native_client__
if (smart_rename (new_name, old_name, 0) != 0)
xexit (1);
+#endif
}
/* Return a pointer to the pointer to the entry which should be rplacd'd
« no previous file with comments | « bfd/elf64-x86-64.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698