From: Ian Lance Taylor Date: Tue, 30 Jul 1996 22:56:46 +0000 (+0000) Subject: * ldlang.c (lang_size_sections): Add the section VMA to the result X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=72df7117d74fe0c6bc1ed8605219e6062de40365;p=binutils-gdb.git * ldlang.c (lang_size_sections): Add the section VMA to the result value when computing the address of a section. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 23479d9afd2..7f208b40c92 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,8 @@ Tue Jul 30 14:46:42 1996 Ian Lance Taylor + * ldlang.c (lang_size_sections): Add the section VMA to the result + value when computing the address of a section. + * ld.h (args_type): Add cref field. * lexsup.c (parse_args): Set command_line.cref. * ldmain.c (main): Check command_line.cref rather than diff --git a/ld/ldlang.c b/ld/ldlang.c index 94f58f9a56d..ae844beb5c4 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -2074,7 +2074,7 @@ lang_size_sections (s, output_section_statement, prev, fill, dot, relax) einfo ("%F%S: non constant address expression for section %s\n", os->name); } - dot = r.value; + dot = r.value + r.section->bfd_section->vma; } /* The section starts here */ /* First, align to what the section needs */