aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-02-16 00:06:02 +0000
committerAlan Modra <amodra@gmail.com>2008-02-16 00:06:02 +0000
commit819da74e19e58ccb6cf378100a3023b9f2532c40 (patch)
tree7d86f152ee303583b7bcbdf20101fadbcf1095e7 /ld
parent1fb93dfff914856fe65d16fdf7d0bfc937669320 (diff)
downloadgdb-819da74e19e58ccb6cf378100a3023b9f2532c40.zip
gdb-819da74e19e58ccb6cf378100a3023b9f2532c40.tar.gz
gdb-819da74e19e58ccb6cf378100a3023b9f2532c40.tar.bz2
PR ld/5761
* ldexp.c (fold_name <LOADADDR>): Check result of evaluating load_base before calling make_abs.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/ldexp.c3
2 files changed, 8 insertions, 1 deletions
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 <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.
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 ();
}
}
}