forked from Imagelibrary/binutils-gdb
* symtab.h (SYMBOL_SET_LINKAGE_NAME): Update comment.
* symfile.c (allocate_symtab): Don't use obsavestring on a constant string. * stabsread.c (define_symbol): Don't use obsavestring on a constant string. * mdebugread.c (parse_type): Don't use obsavestring on a constant string. (new_symtab): Likewise. * elfread.c (elf_symtab_read): Don't use obsavestring on a constant string.
This commit is contained in:
@@ -231,8 +231,9 @@ elf_symtab_read (struct objfile *objfile, int type,
|
||||
/* If filesym is nonzero, it points to a file symbol, but we haven't
|
||||
seen any section info for it yet. */
|
||||
asymbol *filesym = 0;
|
||||
/* Name of filesym, as saved on the objfile_obstack. */
|
||||
char *filesymname = obsavestring ("", 0, &objfile->objfile_obstack);
|
||||
/* Name of filesym. This is either a constant string or is saved on
|
||||
the objfile's obstack. */
|
||||
char *filesymname = "";
|
||||
struct dbx_symfile_info *dbx = objfile->deprecated_sym_stab_info;
|
||||
int stripped = (bfd_get_symcount (objfile->obfd) == 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user