diff options
author | Alan Modra <amodra@gmail.com> | 2001-12-14 15:53:11 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2001-12-14 15:53:11 +0000 |
commit | f91fafbd30ef1c72804db26e80e5e3a41c6c2dde (patch) | |
tree | 3056770c7736d7f1ce2d086bab25c795673da11f /gas/config/obj-elf.c | |
parent | 320fec9a20d692203924b9aa29f8995d1e981aa2 (diff) | |
download | gdb-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/obj-elf.c')
-rw-r--r-- | gas/config/obj-elf.c | 2 |
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); |