diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-04-05 17:51:28 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-04-05 17:51:28 +0000 |
commit | 1a9951a942817b810b55340e84b419e00196a45c (patch) | |
tree | 5f66b98a8e7a7cef0314849520262dc21c6922ee | |
parent | 54ea771f6a0143559812016066ea92208cec3a1b (diff) | |
download | gdb-1a9951a942817b810b55340e84b419e00196a45c.zip gdb-1a9951a942817b810b55340e84b419e00196a45c.tar.gz gdb-1a9951a942817b810b55340e84b419e00196a45c.tar.bz2 |
* linker.c (link_action): For WARN_ROW/warn, use MWARN, not CYCLE,
to avoid crashing in bfd_hash_replace.
-rw-r--r-- | bfd/ChangeLog | 3 | ||||
-rw-r--r-- | bfd/linker.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 15b07dd..aa06860 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,8 @@ Fri Apr 5 12:24:13 1996 Ian Lance Taylor <ian@cygnus.com> + * linker.c (link_action): For WARN_ROW/warn, use MWARN, not CYCLE, + to avoid crashing in bfd_hash_replace. + * sysdep.h: Use #ifdef, not #if. Thu Apr 4 23:32:23 1996 Ian Lance Taylor <ian@cygnus.com> diff --git a/bfd/linker.c b/bfd/linker.c index 696d310..b47817d 100644 --- a/bfd/linker.c +++ b/bfd/linker.c @@ -1397,7 +1397,7 @@ static const enum link_action link_action[8][8] = /* DEFW_ROW */ {DEFW, DEFW, DEFW, NOACT, NOACT, NOACT, NOACT, CYCLE }, /* COMMON_ROW */ {COM, COM, COM, CREF, CREF, BIG, CREF, WARNC }, /* INDR_ROW */ {IND, IND, IND, MDEF, IND, CIND, MIND, CYCLE }, - /* WARN_ROW */ {MWARN, WARN, WARN, CWARN, CWARN, WARN, CWARN, CYCLE }, + /* WARN_ROW */ {MWARN, WARN, WARN, CWARN, CWARN, WARN, CWARN, MWARN }, /* SET_ROW */ {SET, SET, SET, SET, SET, SET, CYCLE, CYCLE } }; |