aboutsummaryrefslogtreecommitdiff
path: root/bfd/linker.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-04-05 17:51:28 +0000
committerIan Lance Taylor <ian@airs.com>1996-04-05 17:51:28 +0000
commit1a9951a942817b810b55340e84b419e00196a45c (patch)
tree5f66b98a8e7a7cef0314849520262dc21c6922ee /bfd/linker.c
parent54ea771f6a0143559812016066ea92208cec3a1b (diff)
downloadgdb-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.
Diffstat (limited to 'bfd/linker.c')
-rw-r--r--bfd/linker.c2
1 files changed, 1 insertions, 1 deletions
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 }
};