diff options
author | DJ Delorie <dj@redhat.com> | 2002-01-22 01:09:49 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2002-01-22 01:09:49 +0000 |
commit | 23deb9235a747924e47c1f9c9d0aa6e20b2e8c16 (patch) | |
tree | de116caf7cbe0701343baf7a9e27f7e1e5bb404d /gas/config/obj-coff.c | |
parent | b3ff9d9a65e3cb20bc5c8f1cced4951c6819b2c4 (diff) | |
download | gdb-23deb9235a747924e47c1f9c9d0aa6e20b2e8c16.zip gdb-23deb9235a747924e47c1f9c9d0aa6e20b2e8c16.tar.gz gdb-23deb9235a747924e47c1f9c9d0aa6e20b2e8c16.tar.bz2 |
* config/obj-coff.c (obj_coff_init_stab_section): Make the
stabstr_name allocation permanent, as it will be referenced from
the section hash.
Diffstat (limited to 'gas/config/obj-coff.c')
-rw-r--r-- | gas/config/obj-coff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c index 4421e4f..759389a 100644 --- a/gas/config/obj-coff.c +++ b/gas/config/obj-coff.c @@ -1631,7 +1631,7 @@ obj_coff_init_stab_section (seg) /* Zero it out. */ memset (p, 0, 12); as_where (&file, (unsigned int *) NULL); - stabstr_name = (char *) alloca (strlen (seg->name) + 4); + stabstr_name = (char *) xmalloc (strlen (seg->name) + 4); strcpy (stabstr_name, seg->name); strcat (stabstr_name, "str"); stroff = get_stab_string_offset (file, stabstr_name); |