From 8cddccd3f191a62607325235ffd55cb37c1120bf Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 18 Nov 2009 12:14:00 +0000 Subject: [PATCH] * targets.c: Don't include alloca-conf.h. (bfd_get_target_info): Don't use alloca. --- bfd/ChangeLog | 5 +++++ bfd/targets.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 88c1e452c41..9bc8a85c79b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2009-11-18 Alan Modra + + * targets.c: Don't include alloca-conf.h. + (bfd_get_target_info): Don't use alloca. + 2009-11-17 H.J. Lu PR ld/10955 diff --git a/bfd/targets.c b/bfd/targets.c index 0bcc9062d34..31ec42f4784 100644 --- a/bfd/targets.c +++ b/bfd/targets.c @@ -25,7 +25,6 @@ #include "bfd.h" #include "libbfd.h" #include "fnmatch.h" -#include "alloca-conf.h" /* It's okay to see some: @@ -1523,7 +1522,8 @@ bfd_get_target_info (const char *target_name, bfd *abfd, for triplets like "pe-arm-wince-little". */ if (!_bfd_find_arch_match (tname, arches, def_target_arch)) { - char *new_tname = (char *) alloca (strlen (hyp) + 1); + char new_tname[50]; + strcpy (new_tname, hyp); while ((hyp = strrchr (new_tname, '-')) != NULL) { -- 2.30.2