diff options
Diffstat (limited to 'ld/ldexp.c')
-rw-r--r-- | ld/ldexp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/ldexp.c b/ld/ldexp.c index 0c7a9b0e68..71f4c8e315 100644 --- a/ld/ldexp.c +++ b/ld/ldexp.c @@ -577,7 +577,8 @@ fold_name (etree_type *tree) if (os != NULL && os->processed) { if (os->load_base == NULL) - new_rel (0, NULL, os->bfd_section); + new_rel (os->bfd_section->lma - os->bfd_section->vma, + NULL, os->bfd_section); else exp_fold_tree_1 (os->load_base); } |