aboutsummaryrefslogtreecommitdiff
path: root/ld/ldwrite.c
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2010-09-22 14:20:24 +0000
committerKai Tietz <kai.tietz@onevision.com>2010-09-22 14:20:24 +0000
commite4b0fe2fa7c4fae156f5d0bc3e14fcc9c397614f (patch)
tree2ef39e52fb0583f4b4a03f00f715e540e36ebf62 /ld/ldwrite.c
parent72e4db75e816964c7533b8522a59ec05b7439691 (diff)
downloadgdb-e4b0fe2fa7c4fae156f5d0bc3e14fcc9c397614f.zip
gdb-e4b0fe2fa7c4fae156f5d0bc3e14fcc9c397614f.tar.gz
gdb-e4b0fe2fa7c4fae156f5d0bc3e14fcc9c397614f.tar.bz2
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.
Diffstat (limited to 'ld/ldwrite.c')
-rw-r--r--ld/ldwrite.c3
1 files changed, 2 insertions, 1 deletions
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