forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user