This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
fix PR5761
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sourceware dot org
- Date: Sat, 16 Feb 2008 10:36:22 +1030
- Subject: fix PR5761
PR ld/5761
* ldexp.c (fold_name <LOADADDR>): Check result of evaluating
load_base before calling make_abs.
Index: ld/ldexp.c
===================================================================
RCS file: /cvs/src/src/ld/ldexp.c,v
retrieving revision 1.72
diff -u -p -r1.72 ldexp.c
--- ld/ldexp.c 15 Feb 2008 03:35:53 -0000 1.72
+++ ld/ldexp.c 16 Feb 2008 00:02:58 -0000
@@ -605,7 +605,8 @@ fold_name (etree_type *tree)
else
{
exp_fold_tree_1 (os->load_base);
- make_abs ();
+ if (expld.result.valid_p)
+ make_abs ();
}
}
}
--
Alan Modra
Australia Development Lab, IBM