diff options
author | Alan Modra <amodra@bigpond.net.au> | 2009-11-18 12:14:00 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2009-11-18 12:14:00 +0000 |
commit | aeff9260c23e5a52465b690f069a94bd59bd1cb0 (patch) | |
tree | 5cc10995fb65d4f2de9059e288f2563d9f41a503 /bfd/targets.c | |
parent | 4340afa80c6abdce27906283234cb4ddbb1d5143 (diff) | |
download | binutils-redhat-aeff9260c23e5a52465b690f069a94bd59bd1cb0.tar.gz |
* targets.c: Don't include alloca-conf.h.
(bfd_get_target_info): Don't use alloca.
Diffstat (limited to 'bfd/targets.c')
-rw-r--r-- | bfd/targets.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/targets.c b/bfd/targets.c index 0bcc9062d3..31ec42f478 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) { |