From c4e9ac527d6914f6b2486d6d60967c119a1f57c8 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 8 Sep 2007 11:04:28 +0000 Subject: [PATCH] * ldwrite.c (build_link_order ): Correct condition under which we build a bfd_data_link_order. --- ld/ChangeLog | 5 +++++ ld/ldwrite.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 1579bec8b68..2ffe3976dc8 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2007-09-08 Alan Modra + + * ldwrite.c (build_link_order ): Correct + condition under which we build a bfd_data_link_order. + 2007-08-31 Tristan Gingold * ldlang.c (lang_map): Increment lang_statement_iteration so that diff --git a/ld/ldwrite.c b/ld/ldwrite.c index 47e8f642f87..0f45a916059 100644 --- a/ld/ldwrite.c +++ b/ld/ldwrite.c @@ -270,7 +270,10 @@ build_link_order (lang_statement_union_type *statement) output_section = statement->padding_statement.output_section; ASSERT (statement->padding_statement.output_section->owner == output_bfd); - if ((output_section->flags & SEC_HAS_CONTENTS) != 0) + if (((output_section->flags & SEC_HAS_CONTENTS) != 0 + || ((output_section->flags & SEC_LOAD) != 0 + && (output_section->flags & SEC_THREAD_LOCAL))) + && (output_section->flags & SEC_NEVER_LOAD) == 0) { link_order = bfd_new_link_order (output_bfd, output_section); link_order->type = bfd_data_link_order; -- 2.30.2