aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-08-31 14:46:55 +0000
committerNick Clifton <nickc@redhat.com>2007-08-31 14:46:55 +0000
commita1438fce30be2e62cfcb2d798e46766c65b82316 (patch)
tree18bf20f54ee1227ecc79678daa4e6c244dcce638 /ld/ldlang.c
parent30b0f203ddf59fe5d666562be4a4e4ea7d04fa47 (diff)
downloadgdb-a1438fce30be2e62cfcb2d798e46766c65b82316.zip
gdb-a1438fce30be2e62cfcb2d798e46766c65b82316.tar.gz
gdb-a1438fce30be2e62cfcb2d798e46766c65b82316.tar.bz2
* ldlang.c (lang_map): Increment lang_statement_iteration so that DEFINED() expressions are correctly computed.
* testsuite/ld-script/map-address.d, * testsuite/ld-script/map-address.t: Add a test for testing DEFINED in map output.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index f247a17..7ecd477 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -1811,6 +1811,7 @@ lang_map (void)
bfd_map_over_sections (p, init_map_userdata, 0);
bfd_link_hash_traverse (link_info.hash, sort_def_symbol, 0);
}
+ lang_statement_iteration ++;
print_statements ();
}
@@ -3539,7 +3540,7 @@ print_assignment (lang_assignment_statement_type *assignment,
value = h->u.def.value;
if (expld.result.section)
- value += expld.result.section->vma;
+ value += expld.result.section->vma;
minfo ("[0x%V]", value);
}