summaryrefslogtreecommitdiff
path: root/bfd/aoutx.h
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2005-02-07 02:58:27 +0000
committerHans-Peter Nilsson <hp@axis.com>2005-02-07 02:58:27 +0000
commit82df4d991aaaf7c2018ea839a54a0f6c8ea5889b (patch)
tree328c23123299b2ba577e884e900b955110861674 /bfd/aoutx.h
parent1b8bd7458d663c3b80e8caf10db167ceb70f6f30 (diff)
downloadgdb-82df4d991aaaf7c2018ea839a54a0f6c8ea5889b.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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index beb63f9b1f6..ab3eb67bcd9 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);