* ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load

section for orphans handled here.
This commit is contained in:
Alan Modra 2010-09-29 06:17:12 +00:00
parent 98fc1c61b5
commit 30920cabe8
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2010-09-29 Alan Modra <amodra@gmail.com>
* ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load
section for orphans handled here.
2010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* configure: Regenerate.

View File

@ -5906,6 +5906,10 @@ lang_place_orphans (void)
os = lang_output_section_statement_lookup (name,
constraint,
TRUE);
if (os->addr_tree == NULL
&& (link_info.relocatable
|| (s->flags & (SEC_LOAD | SEC_ALLOC)) == 0))
os->addr_tree = exp_intop (0);
lang_add_section (&os->children, s, os);
}
}