diff options
author | Alan Modra <amodra@bigpond.net.au> | 2010-09-16 00:06:10 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2010-09-16 00:06:10 +0000 |
commit | 483a75dd573b54b14116d4b766057f965a62ec06 (patch) | |
tree | 54050444dcaaf7cb7d48615f9cbdd098c16c8def /ld/ldwrite.c | |
parent | 83912a80260976ae1824074dbb4bd255b291cf65 (diff) | |
download | binutils-redhat-483a75dd573b54b14116d4b766057f965a62ec06.tar.gz |
bfd/
* elf.c (bfd_elf_get_default_section_type): Don't test SEC_NEVER_LOAD.
* elflink.c (elf_link_input_bfd): Likewise.
ld/
* ld.texinfo (NOLOAD): Do not erroneously state that contents will
appear in output file.
* ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload
unless SEC_COFF_SHARED_LIBRARY.
(map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload
output sections.
(lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding
to update dot in region. Ditto when setting SEC_ALLOC if dot
advanced due to assignment.
* ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD.
Diffstat (limited to 'ld/ldwrite.c')
-rw-r--r-- | ld/ldwrite.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ld/ldwrite.c b/ld/ldwrite.c index 7eb8b2b01d..6b8423b568 100644 --- a/ld/ldwrite.c +++ b/ld/ldwrite.c @@ -276,10 +276,9 @@ build_link_order (lang_statement_union_type *statement) output_section = statement->padding_statement.output_section; ASSERT (statement->padding_statement.output_section->owner == link_info.output_bfd); - 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) + if ((output_section->flags & SEC_HAS_CONTENTS) != 0 + || ((output_section->flags & SEC_LOAD) != 0 + && (output_section->flags & SEC_THREAD_LOCAL))) { link_order = bfd_new_link_order (link_info.output_bfd, output_section); |