aboutsummaryrefslogtreecommitdiff
path: root/bfd/opncls.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-01-26 02:08:01 +0000
committerAlan Modra <amodra@gmail.com>2013-01-26 02:08:01 +0000
commitc9ba0c87bf3595762506825b30f0ebcb9da53129 (patch)
tree9de13a5457cd32f950d7d63cf1b2bb0fc000779b /bfd/opncls.c
parent39c88814382afb7476b342dc3e1333171d72a144 (diff)
downloadgdb-c9ba0c87bf3595762506825b30f0ebcb9da53129.zip
gdb-c9ba0c87bf3595762506825b30f0ebcb9da53129.tar.gz
gdb-c9ba0c87bf3595762506825b30f0ebcb9da53129.tar.bz2
* 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/opncls.c')
-rw-r--r--bfd/opncls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c
index c18d08a..6d61191 100644
--- a/bfd/opncls.c
+++ b/bfd/opncls.c
@@ -86,7 +86,7 @@ _bfd_new_bfd (void)
nbfd->iostream = NULL;
nbfd->where = 0;
if (!bfd_hash_table_init_n (& nbfd->section_htab, bfd_section_hash_newfunc,
- sizeof (struct section_hash_entry), 251))
+ sizeof (struct section_hash_entry), 13))
{
free (nbfd);
return NULL;