* ldlang.c (lang_size_sections): Add the section VMA to the result
value when computing the address of a section.
This commit is contained in:
parent
448b5aadbb
commit
72df7117d7
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
|||
Tue Jul 30 14:46:42 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||
|
||||
* 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
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue