mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
* config/obj-coff.c (obj_coff_init_stab_section): Make the
stabstr_name allocation permanent, as it will be referenced from the section hash.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2002-01-21 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* config/obj-coff.c (obj_coff_init_stab_section): Make the
|
||||
stabstr_name allocation permanent, as it will be referenced from
|
||||
the section hash.
|
||||
|
||||
2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
|
||||
|
||||
* configure.in (ia64-*-netbsd*): New target.
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user