diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-07-30 22:56:46 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-07-30 22:56:46 +0000 |
commit | 72df7117d74fe0c6bc1ed8605219e6062de40365 (patch) | |
tree | 124cec42df0c9b4c69d2fd421821457c498981aa /ld/ldlang.c | |
parent | 448b5aadbbf506609c649e9f1671ff4549d1abc8 (diff) | |
download | gdb-72df7117d74fe0c6bc1ed8605219e6062de40365.zip gdb-72df7117d74fe0c6bc1ed8605219e6062de40365.tar.gz gdb-72df7117d74fe0c6bc1ed8605219e6062de40365.tar.bz2 |
* ldlang.c (lang_size_sections): Add the section VMA to the result
value when computing the address of a section.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index 94f58f9..ae844be 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 */ |