diff options
author | Alan Modra <amodra@gmail.com> | 2010-09-29 06:17:12 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2010-09-29 06:17:12 +0000 |
commit | 30920cabe8b44ae250acfb6309f7240b1747d981 (patch) | |
tree | 34cf675509a9d62743cfacbd0ceb1bd66aa5666c /ld | |
parent | 98fc1c61b52bd548fa67313a9f04aa6c63038cdf (diff) | |
download | gdb-30920cabe8b44ae250acfb6309f7240b1747d981.zip gdb-30920cabe8b44ae250acfb6309f7240b1747d981.tar.gz gdb-30920cabe8b44ae250acfb6309f7240b1747d981.tar.bz2 |
* ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load
section for orphans handled here.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/ldlang.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index bfa0e4d..14a7f7c 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -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. diff --git a/ld/ldlang.c b/ld/ldlang.c index 36750ed..0e60d19 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -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); } } |