aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2000-05-13 06:38:34 +0000
committerH.J. Lu <hjl.tools@gmail.com>2000-05-13 06:38:34 +0000
commit5ee1baa27da1f9ad74ce7c95ed8ff74a1ddf4856 (patch)
treea015e4672d1c5bb3d3e772a3d2c1ba188758995d
parent8216cda9b44352ed26e93c32fb24642b6283b9da (diff)
downloadgdb-5ee1baa27da1f9ad74ce7c95ed8ff74a1ddf4856.zip
gdb-5ee1baa27da1f9ad74ce7c95ed8ff74a1ddf4856.tar.gz
gdb-5ee1baa27da1f9ad74ce7c95ed8ff74a1ddf4856.tar.bz2
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.
-rw-r--r--binutils/ChangeLog9
-rw-r--r--binutils/nlmconv.c8
-rw-r--r--binutils/objdump.c4
3 files changed, 12 insertions, 9 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 813fdff..7505d56 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,12 @@
+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.
+
2000-05-08 Alan Modra <alan@linuxcare.com.au>
* objcopy.c (setup_section): Add const and gettext calls for err.
diff --git a/binutils/nlmconv.c b/binutils/nlmconv.c
index 26602d7..450ac14 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";
diff --git a/binutils/objdump.c b/binutils/objdump.c
index f29106f..cd61ec0 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -2632,7 +2632,7 @@ display_target_list ()
char *dummy_name;
int t;
- dummy_name = choose_temp_base ();
+ dummy_name = make_temp_file (NULL);
for (t = 0; bfd_target_vector[t]; t++)
{
bfd_target *p = bfd_target_vector[t];
@@ -2684,7 +2684,7 @@ display_info_table (first, last)
printf ("%s ", bfd_target_vector[t]->name);
putchar ('\n');
- dummy_name = choose_temp_base ();
+ dummy_name = make_temp_file (NULL);
for (a = (int) bfd_arch_obscure + 1; a < (int) bfd_arch_last; a++)
if (strcmp (bfd_printable_arch_mach (a, 0), "UNKNOWN!") != 0)
{