fix PR5761

Alan Modra amodra@bigpond.net.au
Sat Feb 16 00:06:00 GMT 2008


	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



More information about the Binutils mailing list