aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-09-29 02:24:56 +0000
committerAlan Modra <amodra@gmail.com>2009-09-29 02:24:56 +0000
commitcafed8af5abeaec7b6b7ab7e76a757b90e1448b3 (patch)
tree57ee190cae1fdee566be15060d00df345556b673 /ld/ldlang.c
parentca8b5032127a3f038d264b25585ffa1324d2a419 (diff)
downloadgdb-cafed8af5abeaec7b6b7ab7e76a757b90e1448b3.zip
gdb-cafed8af5abeaec7b6b7ab7e76a757b90e1448b3.tar.gz
gdb-cafed8af5abeaec7b6b7ab7e76a757b90e1448b3.tar.bz2
* ldlang.c (lang_size_sections_1): Allow scripts to specify a
non-zero vma even when relocatable.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 9e956b3..8371370 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -4665,7 +4665,7 @@ lang_size_sections_1
lang_memory_region_type *r;
os = &s->output_section_statement;
- if (link_info.relocatable)
+ if (os->addr_tree == NULL && link_info.relocatable)
os->addr_tree = exp_intop (0);
if (os->addr_tree != NULL)
{