From: Alan Modra Date: Fri, 14 Dec 2001 15:53:11 +0000 (+0000) Subject: * config/obj-elf.c (obj_elf_init_stab_section): References are X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f91fafbd30ef1c72804db26e80e5e3a41c6c2dde;p=binutils-gdb.git * config/obj-elf.c (obj_elf_init_stab_section): References are kept to section name strings. Don't alloca them! --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 8b3100c82f9..1bcd103dd2a 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2001-12-15 Alan Modra + + * 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 * config/tc-d10v.c (get_operands): Mark OPERAND_PLUS after diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index 3c4531e77ca..6ec08820242 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);