* ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load
section for orphans handled here.
This commit is contained in:
parent
98fc1c61b5
commit
30920cabe8
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user