* ldexp.c (fold_name <LOADADDR>): Return an absolute value
authorAlan Modra <amodra@gmail.com>
Wed, 23 Aug 2006 01:35:31 +0000 (01:35 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 23 Aug 2006 01:35:31 +0000 (01:35 +0000)
        rather than a section relative value.

ld/ChangeLog
ld/ldexp.c

index e8f59015cb6cead4bd40b903ef19e8cdf6c6b190..3e9c2d45a11262a74fd33387412fa88bb9d4c873 100644 (file)
@@ -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.
index 22937a27209b95412bf9854208c9539dadd61c88..4f279b853b70d93cc2728a257228adf3fb449560 100644 (file)
@@ -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);
            }