projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abcb776
)
* aoutx.h (aout_link_add_symbols): Just return TRUE if a warning
author
Hans-Peter Nilsson
<hp@axis.com>
Mon, 7 Feb 2005 02:58:27 +0000
(
02:58
+0000)
committer
Hans-Peter Nilsson
<hp@axis.com>
Mon, 7 Feb 2005 02:58:27 +0000
(
02:58
+0000)
symbol was last.
bfd/ChangeLog
patch
|
blob
|
history
bfd/aoutx.h
patch
|
blob
|
history
diff --git
a/bfd/ChangeLog
b/bfd/ChangeLog
index 7648d41450998ef6e6a57bf0952bde0ef45f6556..03eb8d8d50613946549ca15a14ec569409847db1 100644
(file)
--- 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 beb63f9b1f628dddc3cb08f55a6162c91c7c17ca..ab3eb67bcd98714ea7470c61c4e5a17afbe0fcd6 100644
(file)
--- 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);