aboutsummaryrefslogtreecommitdiff
path: root/bfd/targets.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-11-18 12:14:00 +0000
committerAlan Modra <amodra@gmail.com>2009-11-18 12:14:00 +0000
commit8cddccd3f191a62607325235ffd55cb37c1120bf (patch)
tree2870ba2b73fdf9d3db314f6c14b52fe5802095a8 /bfd/targets.c
parent3cb4feec44a041e2fd00963eac7bb550344485b1 (diff)
downloadfsf-binutils-gdb-8cddccd3f191a62607325235ffd55cb37c1120bf.zip
fsf-binutils-gdb-8cddccd3f191a62607325235ffd55cb37c1120bf.tar.gz
fsf-binutils-gdb-8cddccd3f191a62607325235ffd55cb37c1120bf.tar.bz2
* 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/targets.c b/bfd/targets.c
index 0bcc906..31ec42f 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)
{