* objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead

of bfd_count_sections.
	* solib-target.c (solib_target_relocate_section_addresses): Ditto.
	* symfile.c (default_symfile_offsets): Ditto.
	(syms_from_objfile_1): Ditto.  Make dummy addrs list an array of
	one entry, not bfd_count_sections entries.
This commit is contained in:
Doug Evans 2013-05-04 06:19:31 +00:00
parent b3ce41ea47
commit d445b2f6a4
4 changed files with 14 additions and 6 deletions

View file

@ -339,7 +339,7 @@ solib_target_relocate_section_addresses (struct so_list *so,
it any earlier, since we need to open the file first. */
if (so->lm_info->offsets == NULL)
{
int num_sections = bfd_count_sections (so->abfd);
int num_sections = gdb_bfd_count_sections (so->abfd);
so->lm_info->offsets = xzalloc (SIZEOF_N_SECTION_OFFSETS (num_sections));