aboutsummaryrefslogtreecommitdiff
path: root/ld/mpw-elfmips.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-02-13 22:23:33 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-02-13 22:23:33 +0000
commitb46a87b1606c5ea718c3e4ad97d6cb391501a916 (patch)
tree2eb3219b5c8b7ffa0896ad6830306a21983220b1 /ld/mpw-elfmips.c
parentc842b53ae1792ed3bc68759dee24dffdbf3bed32 (diff)
downloadgdb-b46a87b1606c5ea718c3e4ad97d6cb391501a916.zip
gdb-b46a87b1606c5ea718c3e4ad97d6cb391501a916.tar.gz
gdb-b46a87b1606c5ea718c3e4ad97d6cb391501a916.tar.bz2
2001-02-13 H.J. Lu <hjl@gnu.org>
* ldexp.h (node_type): Add etree_provided. * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node type to etree_provided if defined by PROVIDE. Allow updating for etree_provided. (exp_print_tree): Handle etree_provided. * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle etree_provided.
Diffstat (limited to 'ld/mpw-elfmips.c')
-rw-r--r--ld/mpw-elfmips.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/mpw-elfmips.c b/ld/mpw-elfmips.c
index 3143b2e..feeb5c6 100644
--- a/ld/mpw-elfmips.c
+++ b/ld/mpw-elfmips.c
@@ -522,6 +522,7 @@ gldelf32ebmip_find_exp_assignment (exp)
switch (exp->type.node_class)
{
case etree_provide:
+ case etree_provided:
h = bfd_link_hash_lookup (link_info.hash, exp->assign.dst,
false, false, false);
if (h == NULL)
@@ -541,7 +542,7 @@ gldelf32ebmip_find_exp_assignment (exp)
{
if (! (bfd_elf32_record_link_assignment
(output_bfd, &link_info, exp->assign.dst,
- exp->type.node_class == etree_provide ? true : false)))
+ exp->type.node_class != etree_assign ? true : false)))
einfo (_("%P%F: failed to record assignment to %s: %E\n"),
exp->assign.dst);
}