From c3864421222b5f12f72cdb671d246e075eb7839e Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Mon, 7 Feb 2005 02:51:28 +0000 Subject: [PATCH] * aoutx.h (NAME(aout,find_nearest_line)): Correct case for N_SO being the last symbol. --- bfd/ChangeLog | 5 +++++ bfd/aoutx.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 033bf574dec..7648d414509 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-02-07 Hans-Peter Nilsson + + * aoutx.h (NAME(aout,find_nearest_line)): Correct case for N_SO + being the last symbol. + 2005-02-07 Maciej W. Rozycki * elf32-mips.c (mips_elf_gprel32_reloc): Reject diff --git a/bfd/aoutx.h b/bfd/aoutx.h index 2171e84560d..beb63f9b1f6 100644 --- a/bfd/aoutx.h +++ b/bfd/aoutx.h @@ -2748,7 +2748,7 @@ NAME(aout,find_nearest_line) /* Look ahead to next symbol to check if that too is an N_SO. */ p++; if (*p == NULL) - break; + goto done; q = (aout_symbol_type *) (*p); if (q->type != (int)N_SO) goto next; -- 2.30.2