Changes in procfs.c to fix bug with inferior's siginfo struct getting

needlessly stomped.  Changes in elfread.c and solib.c to fix DWARF
processing, broken by other recent changes.
This commit is contained in:
Fred Fish
1992-04-01 03:09:02 +00:00
parent 3bec9cddbe
commit 6b80138803
2 changed files with 84 additions and 17 deletions

View File

@@ -281,10 +281,19 @@ elf_symfile_read (objfile, addr, mainline)
bfd *abfd = objfile->obfd;
struct elfinfo ei;
struct cleanup *back_to;
asection *text_sect;
init_minimal_symbol_collection ();
back_to = make_cleanup (discard_minimal_symbols, 0);
/* Compute the amount to relocate all symbols by. The value passed in
as ADDR is typically either the actual address of the text section,
or a user specified address. By subtracting off the actual address
of the text section, we can compute the relocation amount. */
text_sect = bfd_get_section_by_name (objfile -> obfd, ".text");
addr -= bfd_section_vma (objfile -> obfd, text_sect);
/* Process the normal ELF symbol table first. */
elf_symtab_read (abfd, addr, objfile);