From 819da74e19e58ccb6cf378100a3023b9f2532c40 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 16 Feb 2008 00:06:02 +0000 Subject: [PATCH] PR ld/5761 * ldexp.c (fold_name ): Check result of evaluating load_base before calling make_abs. --- ld/ChangeLog | 6 ++++++ ld/ldexp.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index f8d3bf85..0351411 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2008-02-16 Alan Modra + + PR ld/5761 + * ldexp.c (fold_name ): Check result of evaluating + load_base before calling make_abs. + 2008-02-15 Alan Modra * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id. diff --git a/ld/ldexp.c b/ld/ldexp.c index 16ee5dd..17dd49d 100644 --- a/ld/ldexp.c +++ b/ld/ldexp.c @@ -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 (); } } } -- 2.7.4