mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
2010-09-22 Kai Tietz <kai.tietz@onevision.com>
* 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user