summaryrefslogtreecommitdiff
path: root/binutils/nlmconv.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2000-05-13 06:38:34 +0000
committerH.J. Lu <hjl@lucon.org>2000-05-13 06:38:34 +0000
commitbb6555edede5a610fe3ca486b6fa3f64470a68fb (patch)
treea906974c6bcea69bb7fba7cd256dfc8318738dfd /binutils/nlmconv.c
parenteaac20eea2affb477de1d89162d380df7b7812e9 (diff)
downloadbinutils-redhat-bb6555edede5a610fe3ca486b6fa3f64470a68fb.tar.gz
2000-05-12 H.J. Lu <hjl@gnu.org>
* nlmconv.c (temp_filename): Removed. * nlmconv.c (link_inputs): Use make_temp_file () instead of choose_temp_base (). * objdump.c (display_target_list): Likewise. (display_info_table): Likewise.
Diffstat (limited to 'binutils/nlmconv.c')
-rw-r--r--binutils/nlmconv.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/binutils/nlmconv.c b/binutils/nlmconv.c
index 26602d7b6a..450ac1454b 100644
--- a/binutils/nlmconv.c
+++ b/binutils/nlmconv.c
@@ -2086,9 +2086,6 @@ powerpc_mangle_relocs (outbfd, insec, relocs_ptr, reloc_count_ptr, contents,
#define LD_NAME "ld"
#endif
-/* Temporary file name base. */
-static char *temp_filename;
-
/* The user has specified several input files. Invoke the linker to
link them all together, and convert and delete the resulting output
file. */
@@ -2137,10 +2134,7 @@ link_inputs (inputs, ld)
if (ld == NULL)
ld = (char *) LD_NAME;
- temp_filename = choose_temp_base ();
-
- unlink_on_exit = xmalloc (strlen (temp_filename) + 3);
- sprintf (unlink_on_exit, "%s.O", temp_filename);
+ unlink_on_exit = make_temp_file (".O");
argv[0] = ld;
argv[1] = (char *) "-Ur";