aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-12-14 15:53:11 +0000
committerAlan Modra <amodra@gmail.com>2001-12-14 15:53:11 +0000
commitf91fafbd30ef1c72804db26e80e5e3a41c6c2dde (patch)
tree3056770c7736d7f1ce2d086bab25c795673da11f /gas/config
parent320fec9a20d692203924b9aa29f8995d1e981aa2 (diff)
downloadgdb-f91fafbd30ef1c72804db26e80e5e3a41c6c2dde.zip
gdb-f91fafbd30ef1c72804db26e80e5e3a41c6c2dde.tar.gz
gdb-f91fafbd30ef1c72804db26e80e5e3a41c6c2dde.tar.bz2
* config/obj-elf.c (obj_elf_init_stab_section): References are
kept to section name strings. Don't alloca them!
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/obj-elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c
index 3c4531e..6ec0882 100644
--- a/gas/config/obj-elf.c
+++ b/gas/config/obj-elf.c
@@ -1641,7 +1641,7 @@ obj_elf_init_stab_section (seg)
/* Zero it out. */
memset (p, 0, 12);
as_where (&file, (unsigned int *) NULL);
- stabstr_name = (char *) alloca (strlen (segment_name (seg)) + 4);
+ stabstr_name = (char *) xmalloc (strlen (segment_name (seg)) + 4);
strcpy (stabstr_name, segment_name (seg));
strcat (stabstr_name, "str");
stroff = get_stab_string_offset (file, stabstr_name);