From: Alan Modra Date: Sat, 16 Feb 2008 00:06:02 +0000 (+0000) Subject: PR ld/5761 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=819da74e19e58ccb6cf378100a3023b9f2532c40;p=binutils-gdb.git PR ld/5761 * ldexp.c (fold_name ): Check result of evaluating load_base before calling make_abs. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index f8d3bf85844..0351411706e 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 16ee5dd5567..17dd49dd8cc 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 (); } } }