gas: sparc: fix collision of registers and pseudo-ops.
[deliverable/binutils-gdb.git] / binutils / nlmconv.c
index f45ff5eaf5ba5f2d5d7beb1fe1fa785a59f12e26..eff15c5e2a8355b63f4787ff4585a9e0c98f0885 100644 (file)
@@ -2082,7 +2082,7 @@ link_inputs (struct string_list *inputs, char *ld, char * mfile)
   for (q = inputs; q != NULL; q = q->next)
     ++c;
 
-  argv = (char **) alloca ((c + 7) * sizeof (char *));
+  argv = (char **) xmalloc ((c + 7) * sizeof (char *));
 
 #ifndef __MSDOS__
   if (ld == NULL)
@@ -2140,6 +2140,8 @@ link_inputs (struct string_list *inputs, char *ld, char * mfile)
 
   pid = pexecute (ld, argv, program_name, (char *) NULL, &errfmt, &errarg,
                  PEXECUTE_SEARCH | PEXECUTE_ONE);
+  free (argv);
+
   if (pid == -1)
     {
       fprintf (stderr, _("%s: execution of %s failed: "), program_name, ld);
This page took 0.029566 seconds and 4 git commands to generate.