* config/obj-elf.c (obj_elf_init_stab_section): References are

kept to section name strings.  Don't alloca them!
This commit is contained in:
Alan Modra 2001-12-14 15:53:11 +00:00
parent 320fec9a20
commit f91fafbd30
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-12-15 Alan Modra <amodra@bigpond.net.au>
* config/obj-elf.c (obj_elf_init_stab_section): References are
kept to section name strings. Don't alloca them!
2001-12-12 Alexandre Oliva <aoliva@redhat.com>
* config/tc-d10v.c (get_operands): Mark OPERAND_PLUS after

View File

@ -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);