From 68c391926faed044bec1b5e8bfd7070e48491a74 Mon Sep 17 00:00:00 2001 From: amodra Date: Wed, 23 Aug 2006 01:35:31 +0000 Subject: [PATCH] * ldexp.c (fold_name ): Return an absolute value rather than a section relative value. --- ld/ChangeLog | 5 +++++ ld/ldexp.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index e8f59015cb..3e9c2d45a1 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2006-08-23 Alan Modra + + * ldexp.c (fold_name ): Return an absolute value + rather than a section relative value. + 2006-08-22 Alan Modra * NEWS: Mention LMA default change. diff --git a/ld/ldexp.c b/ld/ldexp.c index 22937a2720..4f279b853b 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); } -- 2.11.0