Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
authorKen Raeburn <raeburn@cygnus>
Fri, 6 Oct 1995 21:30:51 +0000 (21:30 +0000)
committerKen Raeburn <raeburn@cygnus>
Fri, 6 Oct 1995 21:30:51 +0000 (21:30 +0000)
* archive.c (bfd_get_next_mapent): Return BFD_NO_MORE_SYMBOLS when the symbol
table is empty.

* elf32-m68k.c (elf_m68k_size_dynamic_sections): Don't reserve space for
section symbols, since we don't output them either.
(elf_m68k_adjust_dynindx): Removed.

* ptrace-core.c (rawptr): Make it a local variable of ptrace_unix_core_file_p.
* trad-core.c (rawptr): Likewise, for trad_unix_core_file_p.

bfd/ChangeLog
bfd/archive.c

index dd04437340ff3900058a83f95681bd423f1271c9..728337e23b1354f46bcc2c3dc7779b737425f439 100644 (file)
@@ -1,3 +1,18 @@
+Fri Oct  6 16:18:35 1995  Ken Raeburn  <raeburn@cygnus.com>
+
+       Mon Sep 25 22:49:32 1995  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
+
+       * archive.c (bfd_get_next_mapent): Return BFD_NO_MORE_SYMBOLS
+       when the symbol table is empty.
+
+       * elf32-m68k.c (elf_m68k_size_dynamic_sections): Don't reserve
+       space for section symbols, since we don't output them either.
+       (elf_m68k_adjust_dynindx): Removed.
+
+       * ptrace-core.c (rawptr): Make it a local variable of
+       ptrace_unix_core_file_p.
+       * trad-core.c (rawptr): Likewise, for trad_unix_core_file_p.
+
 Fri Oct  6 12:24:47 1995  Michael Meissner  <meissner@tiktok.cygnus.com>
 
        * coff-rs6000.c (xcoff_write_archive_contents): Return false, not
index 28073dab8c7d0c08973fd7b6810ee9f83f8f31de..77aa04c22122d54e0d7d28ba4eab917469e97c12 100644 (file)
@@ -236,7 +236,9 @@ bfd_get_next_mapent (abfd, prev, entry)
 
   if (prev == BFD_NO_MORE_SYMBOLS)
     prev = 0;
-  else if (++prev >= bfd_ardata (abfd)->symdef_count)
+  else
+    ++prev;
+  if (prev >= bfd_ardata (abfd)->symdef_count)
     return BFD_NO_MORE_SYMBOLS;
 
   *entry = (bfd_ardata (abfd)->symdefs + prev);