summaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2012-05-30 04:19:10 +0000
committerAlan Modra <amodra@bigpond.net.au>2012-05-30 04:19:10 +0000
commit5e49132f7d1eac96331b6d1398c9b7e308f96cc1 (patch)
tree13153bf21c8d121d489e3cd6a085abc55024494e /ld/ldlang.c
parenteb3299f10682d64c7c576df93d4e494d02be5285 (diff)
downloadbinutils-redhat-5e49132f7d1eac96331b6d1398c9b7e308f96cc1.tar.gz
* ldlang.h (lang_output_section_statement_type): Rename
"section_relative_symbol" field to "update_dot". * ldlang.c: Update all uses. (strip_excluded_output_sections): Don't test update_dot_tree here.. (lang_leave_overlay): ..set update_dot here.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index f4eb703b71..4e75624e51 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -3889,8 +3889,7 @@ strip_excluded_output_sections (void)
{
/* We don't set bfd_section to NULL since bfd_section of the
removed output section statement may still be used. */
- if (!os->section_relative_symbol
- && !os->update_dot_tree)
+ if (!os->update_dot)
os->ignored = TRUE;
output_section->flags |= SEC_EXCLUDE;
bfd_section_list_remove (link_info.output_bfd, output_section);
@@ -5253,7 +5252,7 @@ lang_size_sections_1
|| tree->type.node_class == etree_assign)
&& (tree->assign.dst [0] != '.'
|| tree->assign.dst [1] != '\0'))
- output_section_statement->section_relative_symbol = 1;
+ output_section_statement->update_dot = 1;
if (!output_section_statement->ignored)
{
@@ -7390,8 +7389,11 @@ lang_leave_overlay (etree_type *lma_expr,
/* After setting the size of the last section, set '.' to end of the
overlay region. */
if (overlay_list != NULL)
- overlay_list->os->update_dot_tree
- = exp_assign (".", exp_binop ('+', overlay_vma, overlay_max));
+ {
+ overlay_list->os->update_dot = 1;
+ overlay_list->os->update_dot_tree
+ = exp_assign (".", exp_binop ('+', overlay_vma, overlay_max));
+ }
l = overlay_list;
while (l != NULL)