diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 15b07dd27f..aa06860777 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 696d3109be..b47817d14a 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 } };