aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2006-08-23 01:35:31 +0000
committerAlan Modra <amodra@gmail.com>2006-08-23 01:35:31 +0000
commit3e23777d0bcffa43d4c25a7a5ee0e9b0f7c3a49d (patch)
treef9128796cfbd83675c45977dd6a84ba084103597
parent279d0c4d5c7778719858194554b7779a0746dda6 (diff)
downloadgdb-3e23777d0bcffa43d4c25a7a5ee0e9b0f7c3a49d.zip
gdb-3e23777d0bcffa43d4c25a7a5ee0e9b0f7c3a49d.tar.gz
gdb-3e23777d0bcffa43d4c25a7a5ee0e9b0f7c3a49d.tar.bz2
* ldexp.c (fold_name <LOADADDR>): Return an absolute value
rather than a section relative value.
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/ldexp.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index e8f5901..3e9c2d4 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2006-08-23 Alan Modra <amodra@bigpond.net.au>
+
+ * ldexp.c (fold_name <LOADADDR>): Return an absolute value
+ rather than a section relative value.
+
2006-08-22 Alan Modra <amodra@bigpond.net.au>
* NEWS: Mention LMA default change.
diff --git a/ld/ldexp.c b/ld/ldexp.c
index 22937a2..4f279b8 100644
--- a/ld/ldexp.c
+++ b/ld/ldexp.c
@@ -577,8 +577,7 @@ fold_name (etree_type *tree)
if (os != NULL && os->processed_lma)
{
if (os->load_base == NULL)
- new_rel (os->bfd_section->lma - os->bfd_section->vma,
- NULL, os->bfd_section);
+ new_abs (os->bfd_section->lma);
else
exp_fold_tree_1 (os->load_base);
}