PR ld/5761
authorAlan Modra <amodra@gmail.com>
Sat, 16 Feb 2008 00:06:02 +0000 (00:06 +0000)
committerAlan Modra <amodra@gmail.com>
Sat, 16 Feb 2008 00:06:02 +0000 (00:06 +0000)
* ldexp.c (fold_name <LOADADDR>): Check result of evaluating
load_base before calling make_abs.

ld/ChangeLog
ld/ldexp.c

index f8d3bf8..0351411 100644 (file)
@@ -1,3 +1,9 @@
+2008-02-16  Alan Modra  <amodra@bigpond.net.au>
+
+       PR ld/5761
+       * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
+       load_base before calling make_abs.
+
 2008-02-15  Alan Modra  <amodra@bigpond.net.au>
 
        * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
index 16ee5dd..17dd49d 100644 (file)
@@ -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 ();
                }
            }
        }