aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-07-13 07:34:25 +0000
committerAlan Modra <amodra@gmail.com>2007-07-13 07:34:25 +0000
commit3d263d86a5f14e3f60e36a7d22fd5816e9b72798 (patch)
tree95343a4acc9a9bdd1bb3e8cc4befdbeb12e8189c /ld/ldlang.c
parentab3cc168959ec94571e9761b18106d2a5ca04078 (diff)
downloadgdb-3d263d86a5f14e3f60e36a7d22fd5816e9b72798.zip
gdb-3d263d86a5f14e3f60e36a7d22fd5816e9b72798.tar.gz
gdb-3d263d86a5f14e3f60e36a7d22fd5816e9b72798.tar.bz2
* ldlang.c (strip_excluded_output_sections): Don't ignore sections
with update_dot_tree.
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 56edee8..ecc0dad 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -3380,7 +3380,8 @@ 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)
+ if (!os->section_relative_symbol
+ && !os->update_dot_tree)
os->ignored = TRUE;
output_section->flags |= SEC_EXCLUDE;
bfd_section_list_remove (output_bfd, output_section);