From 3d263d86a5f14e3f60e36a7d22fd5816e9b72798 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 13 Jul 2007 07:34:25 +0000 Subject: [PATCH] * ldlang.c (strip_excluded_output_sections): Don't ignore sections with update_dot_tree. --- ld/ChangeLog | 5 +++++ ld/ldlang.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 7b9a1f84cd2..52324af7555 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2007-07-13 Alan Modra + + * ldlang.c (strip_excluded_output_sections): Don't ignore sections + with update_dot_tree. + 2007-07-12 Nathan Sidwell * scripttempl/pe.sc: Don't include .gcc_except_table and diff --git a/ld/ldlang.c b/ld/ldlang.c index 56edee80a1d..ecc0dad9640 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); -- 2.30.2