From e4b0fe2fa7c4fae156f5d0bc3e14fcc9c397614f Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Wed, 22 Sep 2010 14:20:24 +0000 Subject: 2010-09-22 Kai Tietz * ldlang.c (lang_add_section): Allow for debugging section to be marked as noload but to keep content. (IGNORE_SECTION): Likewise. (lang_check_section_addresses): Likewise. * ldwrite.c (build_link_order): Likewise. --- ld/ldwrite.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ld/ldwrite.c') diff --git a/ld/ldwrite.c b/ld/ldwrite.c index 6b8423b..d0616fc 100644 --- a/ld/ldwrite.c +++ b/ld/ldwrite.c @@ -245,7 +245,8 @@ build_link_order (lang_statement_union_type *statement) link_order = bfd_new_link_order (link_info.output_bfd, output_section); - if (i->flags & SEC_NEVER_LOAD) + if ((i->flags & SEC_NEVER_LOAD) != 0 + && (i->flags & SEC_DEBUGGING) == 0) { /* We've got a never load section inside one which is going to be output, we'll change it into a -- cgit v1.1