Remove ppc860, ppc750cl, ppc7450 insns from common ppc.
[binutils-gdb.git] / binutils / addr2line.c
index d37145e9e53a39c48b2fc55631385aa9712f8bcf..e121c74c7854a732ae45b4f10d2d5f9949e6bfb6 100644 (file)
@@ -140,6 +140,14 @@ slurp_symtab (bfd *abfd)
       syms = xmalloc (storage);
       symcount = bfd_canonicalize_dynamic_symtab (abfd, syms);
     }
+
+  /* PR 17512: file: 2a1d3b5b.
+     Do not pretend that we have some symbols when we don't.  */
+  if (symcount <= 0)
+    {
+      free (syms);
+      syms = NULL;
+    }
 }
 \f
 /* These global variables are used to pass information between