summaryrefslogtreecommitdiff
path: root/bfd/mmo.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2013-01-26 02:07:58 +0000
committerAlan Modra <amodra@bigpond.net.au>2013-01-26 02:07:58 +0000
commite154936b0f3f585c60f3a74a8470ad4db0281d2e (patch)
tree26e2d84e3f36a6d23a87b16563cdeab2206c7f37 /bfd/mmo.c
parent7d2d8c86556f824332c6132b186681a2b5248b74 (diff)
downloadbinutils-redhat-e154936b0f3f585c60f3a74a8470ad4db0281d2e.tar.gz
* bfd.c (struct bfd_preserve, bfd_preserve_save, bfd_preserve_restore,
bfd_preserve_finish): Move to.. * format.c: ..here, splitting out.. (bfd_reinit): ..this. New function. (bfd_check_format_matches): Use bfd_preserve_save/restore to keep bfd state for a match. * elfcode.h (elf_object_p): Don't use bfd_preserve_save/restore. * elfcore.h (elf_core_file_p): Likewise. * mach-o.c (bfd_mach_o_header_p): Likewise. * pef.c (bfd_pef_object_p, bfd_pef_xlib_object_p): Likewise. * xsym.c (bfd_sym_object_p): Likewise. * mmo.c (mmo_scan): Clear abfd->symcount. * opncls.c (_bfd_new_bfd): Use a smaller section hash table. * section.c (bfd_section_list_clear): Clear section_htab.count. * bfd-in2.h: Regenerate.
Diffstat (limited to 'bfd/mmo.c')
-rw-r--r--bfd/mmo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/mmo.c b/bfd/mmo.c
index 7c82c61e35..bebf05ac28 100644
--- a/bfd/mmo.c
+++ b/bfd/mmo.c
@@ -1536,6 +1536,7 @@ mmo_scan (bfd *abfd)
long stab_loc = -1;
char *file_names[256];
+ abfd->symcount = 0;
memset (file_names, 0, sizeof (file_names));
if (bfd_seek (abfd, (file_ptr) 0, SEEK_SET) != 0)