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 | |
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')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/obj-elf.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 8b3100c..1bcd103 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -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 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); |