* 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.
This commit is contained in:
Kai Tietz
2010-09-22 14:20:24 +00:00
parent 72e4db75e8
commit e4b0fe2fa7
3 changed files with 22 additions and 4 deletions

View File

@@ -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