From 3266eaffb7487c163416d65d665f0425faa43fe1 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Fri, 6 Oct 1995 21:30:51 +0000 Subject: [PATCH] Mon Sep 25 22:49:32 1995 Andreas Schwab * 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 | 15 +++++++++++++++ bfd/archive.c | 4 +++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index dd04437340f..728337e23b1 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,18 @@ +Fri Oct 6 16:18:35 1995 Ken Raeburn + + Mon Sep 25 22:49:32 1995 Andreas Schwab + + * 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 * coff-rs6000.c (xcoff_write_archive_contents): Return false, not diff --git a/bfd/archive.c b/bfd/archive.c index 28073dab8c7..77aa04c2212 100644 --- a/bfd/archive.c +++ b/bfd/archive.c @@ -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); -- 2.30.2