2001-02-27 H.J. Lu <hjl@gnu.org>
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 27 Feb 2001 18:45:45 +0000 (18:45 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 27 Feb 2001 18:45:45 +0000 (18:45 +0000)
* aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
abfd->tdata.aout_data == NULL.

bfd/ChangeLog
bfd/aoutx.h

index 61edfb7..374a01f 100644 (file)
@@ -1,3 +1,8 @@
+2001-02-27  H.J. Lu  <hjl@gnu.org>
+
+       * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
+       abfd->tdata.aout_data == NULL.
+
 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
 
        * elf32-hppa.c: Correct field selector in stub comments.
index 94a46b0..e5cc394 100644 (file)
@@ -2906,7 +2906,8 @@ NAME(aout,bfd_free_cached_info) (abfd)
 {
   asection *o;
 
-  if (bfd_get_format (abfd) != bfd_object)
+  if (bfd_get_format (abfd) != bfd_object
+      || abfd->tdata.aout_data == NULL)
     return true;
 
 #define BFCI_FREE(x) if (x != NULL) { free (x); x = NULL; }