diff options
author | Alan Modra <amodra@gmail.com> | 2013-01-26 02:08:01 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2013-01-26 02:08:01 +0000 |
commit | c9ba0c87bf3595762506825b30f0ebcb9da53129 (patch) | |
tree | 9de13a5457cd32f950d7d63cf1b2bb0fc000779b /bfd/bfd-in2.h | |
parent | 39c88814382afb7476b342dc3e1333171d72a144 (diff) | |
download | gdb-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/bfd-in2.h')
-rw-r--r-- | bfd/bfd-in2.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 489c3b5..5b04176 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -6247,24 +6247,6 @@ extern bfd_byte *bfd_get_relocated_section_contents bfd_boolean bfd_alt_mach_code (bfd *abfd, int alternative); -struct bfd_preserve -{ - void *marker; - void *tdata; - flagword flags; - const struct bfd_arch_info *arch_info; - struct bfd_section *sections; - struct bfd_section *section_last; - unsigned int section_count; - struct bfd_hash_table section_htab; -}; - -bfd_boolean bfd_preserve_save (bfd *, struct bfd_preserve *); - -void bfd_preserve_restore (bfd *, struct bfd_preserve *); - -void bfd_preserve_finish (bfd *, struct bfd_preserve *); - bfd_vma bfd_emul_get_maxpagesize (const char *); void bfd_emul_set_maxpagesize (const char *, bfd_vma); |