forked from Imagelibrary/binutils-gdb
* elfread.c (record_minimal_symbol_and_info): Kludged to put
extra info in the minimal symbol. (elf_symtab_read): The extra info is the size of an ELF object, which was kludged to us in the `udata' field of the BFD symbol. Gag me with a crowbar... (elf_symfile_read): Keep track of both the absolute load address, and the offset between load addr and symbols. Handle STABS as well as DWARF sections, passing the absolute load address to elfstab_build_psymtabs. * objfiles.c (free_objfile): Eliminate storage leaks. Contributed by <Peter.Schauer@regent.e-technik.tu-muenchen.dbp.de>. * symfile.c (symfile_bfd_open): Comment where name is freed. * symmisc.c (extend_psymbol_list): Comment where list is freed.
This commit is contained in:
@@ -656,6 +656,7 @@ symfile_bfd_open (name)
|
||||
}
|
||||
free (name); /* Free 1st new malloc'd copy */
|
||||
name = absolute_name; /* Keep 2nd malloc'd copy in bfd */
|
||||
/* It'll be freed in free_objfile(). */
|
||||
|
||||
sym_bfd = bfd_fdopenr (name, NULL, desc);
|
||||
if (!sym_bfd)
|
||||
|
||||
Reference in New Issue
Block a user