From 1a9951a942817b810b55340e84b419e00196a45c Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 5 Apr 1996 17:51:28 +0000 Subject: [PATCH] * linker.c (link_action): For WARN_ROW/warn, use MWARN, not CYCLE, to avoid crashing in bfd_hash_replace. --- bfd/ChangeLog | 3 +++ bfd/linker.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 15b07dd27f7..aa06860777e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,8 @@ Fri Apr 5 12:24:13 1996 Ian Lance Taylor + * 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 diff --git a/bfd/linker.c b/bfd/linker.c index 696d3109be8..b47817d14aa 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 } }; -- 2.30.2