aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bfd/ChangeLog16
-rw-r--r--bfd/bfd.c5
2 files changed, 11 insertions, 10 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 479674b..a8af67e 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2002-11-18 Klee Dienes <kdienes@apple.com>
+
+ * bfd.c (bfd_preserve_save): Don't zero BFD_IN_MEMORY.
+
2002-11-15 Kazu Hirata <kazu@cs.umass.edu>
* coff-h8300.c (h8300_reloc16_estimate): Do not optimize away
@@ -181,12 +185,12 @@
2002-11-06 Klee Dienes <kdienes@apple.com>
- * coff-stgo32.c (stub_bytes): Mark as const.
+ * coff-stgo32.c (stub_bytes): Mark as const.
Fix comment formatting.
2002-11-06 Klee Dienes <kdienes@apple.com>
- * Makefile.am (BFD32_BACKENDS): Add mach-o.lo, pef.lo, and
+ * Makefile.am (BFD32_BACKENDS): Add mach-o.lo, pef.lo, and
xsym.lo.
(BFD32_BACKENDS_CFILES): Add mach-o.c, pef.c, and xsym.c.
(SOURCE_HFILES): Add mach-o.h, pef.h, pef-traceback.h, xsym.h
@@ -194,10 +198,10 @@
* bfd.c (struct bfd): Add private data for mach-o, pef, and sym.
* targets.c (enum bfd_flavour): Add flavours for mach-o, pef, and
sym.
- (_bfd_target_vector): Add target vectors for mach-o, pef, and sym.
+ (_bfd_target_vector): Add target vectors for mach-o, pef, and sym.
* Makefile.in: Regenerate.
* doc/Makefile.in: Regenerate.
- * bfd-in2.h: Regenerate.
+ * bfd-in2.h: Regenerate.
* xsym.c: New file. Contains support for the Apple/Metrowerks
xSYM debugging format.
* xsym.h: New file.
@@ -207,13 +211,13 @@
* pef-traceback.h: New file. Contains support for parsing PowerPC
traceback tables as used by PEF executables (and perhaps other
systems as well).
- * mach-o.c: New file. Contains support for the Mach-O object file
+ * mach-o.c: New file. Contains support for the Mach-O object file
format.
* mach-o.h: New file.
* mach-o-target.c: New file. Declares the mach-o targets
themselves. Included three times by mach-o.c; each time with a
different set of macros set.
-
+
2002-11-06 Graeme Peterson <gp@qnx.com>
* Makefile.am: Remove entries for elf32-qnx.[ch].
diff --git a/bfd/bfd.c b/bfd/bfd.c
index 5412ac8..f4f8a5e 100644
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -1438,7 +1438,6 @@ bfd_preserve_save (abfd, preserve)
preserve->tdata = abfd->tdata.any;
preserve->arch_info = abfd->arch_info;
preserve->flags = abfd->flags;
-
preserve->sections = abfd->sections;
preserve->section_tail = abfd->section_tail;
preserve->section_count = abfd->section_count;
@@ -1449,8 +1448,7 @@ bfd_preserve_save (abfd, preserve)
abfd->tdata.any = NULL;
abfd->arch_info = &bfd_default_arch_struct;
- abfd->flags = 0;
-
+ abfd->flags &= BFD_IN_MEMORY;
abfd->sections = NULL;
abfd->section_tail = &abfd->sections;
abfd->section_count = 0;
@@ -1482,7 +1480,6 @@ bfd_preserve_restore (abfd, preserve)
abfd->tdata.any = preserve->tdata;
abfd->arch_info = preserve->arch_info;
abfd->flags = preserve->flags;
-
abfd->section_htab = preserve->section_htab;
abfd->sections = preserve->sections;
abfd->section_tail = preserve->section_tail;