diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2005-02-07 02:58:27 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2005-02-07 02:58:27 +0000 |
commit | 9f400ee952afb0f7d1404a82628b4db6d8550d50 (patch) | |
tree | 21ae7f10581ed4da2045be06049fb878e14474a0 /bfd | |
parent | abcb776f284f41b7bf5f2bb3eabfaebd21c00f59 (diff) | |
download | gdb-9f400ee952afb0f7d1404a82628b4db6d8550d50.zip gdb-9f400ee952afb0f7d1404a82628b4db6d8550d50.tar.gz gdb-9f400ee952afb0f7d1404a82628b4db6d8550d50.tar.bz2 |
* aoutx.h (aout_link_add_symbols): Just return TRUE if a warning
symbol was last.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 2 | ||||
-rw-r--r-- | bfd/aoutx.h | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 7648d41..03eb8d8 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -2,6 +2,8 @@ * aoutx.h (NAME(aout,find_nearest_line)): Correct case for N_SO being the last symbol. + (aout_link_add_symbols): Just return TRUE if a warning + symbol was last. 2005-02-07 Maciej W. Rozycki <macro@mips.com> diff --git a/bfd/aoutx.h b/bfd/aoutx.h index beb63f9..ab3eb67 100644 --- a/bfd/aoutx.h +++ b/bfd/aoutx.h @@ -3430,8 +3430,9 @@ aout_link_add_symbols (abfd, info) break; case N_WARNING: /* A warning symbol. The next symbol is the one to warn - about. */ - BFD_ASSERT (p + 1 < pend); + about. If there is no next symbol, just look away. */ + if (p + 1 >= pend) + return TRUE; ++p; string = name; name = strings + GET_WORD (abfd, p->e_strx); |