* opncls.c (bfd_realloc): Deleted, since it's broken and fixing it would make
authorKen Raeburn <raeburn@cygnus>
Wed, 12 Oct 1994 21:39:54 +0000 (21:39 +0000)
committerKen Raeburn <raeburn@cygnus>
Wed, 12 Oct 1994 21:39:54 +0000 (21:39 +0000)
it slow.  Besides, it isn't used much.
* elfcode.h (elf_map_symbols): Always allocate new storage for the symbol table.

bfd/ChangeLog
bfd/elfcode.h

index a8069d4c66f557891b55e58490b23a4a8deb5553..3bf91b122032f5e1386edbc02359c3fa20c64f00 100644 (file)
@@ -1,3 +1,10 @@
+Wed Oct 12 16:46:43 1994  Ken Raeburn  <raeburn@cujo.cygnus.com>
+
+       * opncls.c (bfd_realloc): Deleted, since it's broken and fixing it
+       would make it slow.  Besides, it isn't used much.
+       * elfcode.h (elf_map_symbols): Always allocate new storage for the
+       symbol table.
+
 Wed Oct 12 11:54:37 1994  Ian Lance Taylor  <ian@sanguine.cygnus.com>
 
        * rs6000-core.c (rs6000coff_core_file_matches_executable_p): Make
index 8662c7f81a42ce3c8907520579b66cd26e12539d..888e51235648071c07c5572bcbbc43a8863a7752 100644 (file)
@@ -1554,11 +1554,15 @@ elf_map_symbols (abfd)
 
   if (num_sections)
     {
+#if 0 /* @@ I just deleted bfd_realloc, because it's broken and too hard to
+        fix.  I'm leaving this code here as a reminder to look at this more
+        carefully later and see if we can avoid wasting memory.  */
       if (syms)
        syms = (asymbol **) bfd_realloc (abfd, syms,
                                         ((symcount + num_sections + 1)
                                          * sizeof (asymbol *)));
       else
+#endif
        syms = (asymbol **) bfd_alloc (abfd,
                                   (num_sections + 1) * sizeof (asymbol *));
       if (!syms)