Lines Matching refs:preserve
119 bfd_preserve_save (bfd *abfd, struct bfd_preserve *preserve) in bfd_preserve_save() argument
121 preserve->tdata = abfd->tdata.any; in bfd_preserve_save()
122 preserve->arch_info = abfd->arch_info; in bfd_preserve_save()
123 preserve->flags = abfd->flags; in bfd_preserve_save()
124 preserve->sections = abfd->sections; in bfd_preserve_save()
125 preserve->section_last = abfd->section_last; in bfd_preserve_save()
126 preserve->section_count = abfd->section_count; in bfd_preserve_save()
127 preserve->section_htab = abfd->section_htab; in bfd_preserve_save()
128 preserve->marker = bfd_alloc (abfd, 1); in bfd_preserve_save()
129 if (preserve->marker == NULL) in bfd_preserve_save()
150 bfd_preserve_restore (bfd *abfd, struct bfd_preserve *preserve) in bfd_preserve_restore() argument
154 abfd->tdata.any = preserve->tdata; in bfd_preserve_restore()
155 abfd->arch_info = preserve->arch_info; in bfd_preserve_restore()
156 abfd->flags = preserve->flags; in bfd_preserve_restore()
157 abfd->section_htab = preserve->section_htab; in bfd_preserve_restore()
158 abfd->sections = preserve->sections; in bfd_preserve_restore()
159 abfd->section_last = preserve->section_last; in bfd_preserve_restore()
160 abfd->section_count = preserve->section_count; in bfd_preserve_restore()
164 bfd_release (abfd, preserve->marker); in bfd_preserve_restore()
165 preserve->marker = NULL; in bfd_preserve_restore()
172 bfd_preserve_finish (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_preserve *preserve) in bfd_preserve_finish() argument
178 bfd_hash_table_free (&preserve->section_htab); in bfd_preserve_finish()
179 preserve->marker = NULL; in bfd_preserve_finish()
211 struct bfd_preserve preserve; in bfd_check_format_matches() local
239 preserve.marker = NULL; in bfd_check_format_matches()
309 if (preserve.marker != NULL) in bfd_check_format_matches()
310 bfd_preserve_finish (abfd, &preserve); in bfd_check_format_matches()
348 if (!bfd_preserve_save (abfd, &preserve)) in bfd_check_format_matches()
422 if (preserve.marker != NULL) in bfd_check_format_matches()
423 bfd_preserve_restore (abfd, &preserve); in bfd_check_format_matches()
465 if (preserve.marker != NULL) in bfd_check_format_matches()
466 bfd_preserve_restore (abfd, &preserve); in bfd_check_format_matches()