Lines Matching full:preserve
119 bfd_preserve_save (bfd *abfd, struct bfd_preserve *preserve)
121 preserve->tdata = abfd->tdata.any;
122 preserve->arch_info = abfd->arch_info;
123 preserve->flags = abfd->flags;
124 preserve->sections = abfd->sections;
125 preserve->section_last = abfd->section_last;
126 preserve->section_count = abfd->section_count;
127 preserve->section_htab = abfd->section_htab;
128 preserve->marker = bfd_alloc (abfd, 1);
129 if (preserve->marker == NULL)
150 bfd_preserve_restore (bfd *abfd, struct bfd_preserve *preserve)
154 abfd->tdata.any = preserve->tdata;
155 abfd->arch_info = preserve->arch_info;
156 abfd->flags = preserve->flags;
157 abfd->section_htab = preserve->section_htab;
158 abfd->sections = preserve->sections;
159 abfd->section_last = preserve->section_last;
160 abfd->section_count = preserve->section_count;
164 bfd_release (abfd, preserve->marker);
165 preserve->marker = NULL;
172 bfd_preserve_finish (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_preserve *preserve)
178 bfd_hash_table_free (&preserve->section_htab);
179 preserve->marker = NULL;
214 struct bfd_preserve preserve;
242 preserve.marker = NULL;
322 if (preserve.marker != NULL)
323 bfd_preserve_finish (abfd, &preserve);
361 if (!bfd_preserve_save (abfd, &preserve))
435 if (preserve.marker != NULL)
436 bfd_preserve_restore (abfd, &preserve);
478 if (preserve.marker != NULL)
479 bfd_preserve_restore (abfd, &preserve);