diff options
author | Alan Modra <amodra@gmail.com> | 2002-11-18 00:33:01 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-11-18 00:33:01 +0000 |
commit | 3ae414543ec83164f95a85b951310acfd52dbccb (patch) | |
tree | 418955f264d9979787408eacc0e447a10cb8b595 /bfd/bfd.c | |
parent | aaa824b549beb2327cbd85dc78a8f9c4d4e93e63 (diff) | |
download | gdb-3ae414543ec83164f95a85b951310acfd52dbccb.zip gdb-3ae414543ec83164f95a85b951310acfd52dbccb.tar.gz gdb-3ae414543ec83164f95a85b951310acfd52dbccb.tar.bz2 |
* bfd.c (bfd_preserve_save): Don't zero BFD_IN_MEMORY.
Diffstat (limited to 'bfd/bfd.c')
-rw-r--r-- | bfd/bfd.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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; |