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 | d6a8ffb583eb3f55ec525d770c8491ef1f8381c2 (patch) | |
tree | dc1c2440af06f6a36f9b286d52fbc2884c46d316 /bfd/aoutx.h | |
parent | 262872b1be17715733bae5e72320a4e86483a7fc (diff) | |
download | binutils-redhat-d6a8ffb583eb3f55ec525d770c8491ef1f8381c2.tar.gz |
* aoutx.h (aout_link_add_symbols): Just return TRUE if a warning
symbol was last.
Diffstat (limited to 'bfd/aoutx.h')
-rw-r--r-- | bfd/aoutx.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/aoutx.h b/bfd/aoutx.h index beb63f9b1f..ab3eb67bcd 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); |