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/ldlang.c | |
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/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); } } |