diff options
author | Alan Modra <amodra@gmail.com> | 2010-09-16 00:06:12 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2010-09-16 00:06:12 +0000 |
commit | 2e76e85a380390ce45e72a41822d29985261a529 (patch) | |
tree | ecf9b1cf665def17c7ab6a1a5cb3340478c99b47 /bfd/elflink.c | |
parent | 15ed0ef36bbfa677eb04458702a94d401a7760ba (diff) | |
download | gdb-2e76e85a380390ce45e72a41822d29985261a529.zip gdb-2e76e85a380390ce45e72a41822d29985261a529.tar.gz gdb-2e76e85a380390ce45e72a41822d29985261a529.tar.bz2 |
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 'bfd/elflink.c')
-rw-r--r-- | bfd/elflink.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c index 1446885..4351e28 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -2829,7 +2829,7 @@ _bfd_elf_dynamic_symbol_p (struct elf_link_hash_entry *h, /* Return true if the symbol referred to by H should be considered to resolve local to the current module, and false otherwise. Differs from (the inverse of) _bfd_elf_dynamic_symbol_p in the treatment of - undefined symbols. The two functions are vitually identical except + undefined symbols. The two functions are virtually identical except for the place where forced_local and dynindx == -1 are tested. If either of those tests are true, _bfd_elf_dynamic_symbol_p will say the symbol is local, while _bfd_elf_symbol_refs_local_p will say @@ -9843,7 +9843,6 @@ elf_link_input_bfd (struct elf_final_link_info *finfo, bfd *input_bfd) { /* FIXME: octets_per_byte. */ if (! (o->flags & SEC_EXCLUDE) - && ! (o->output_section->flags & SEC_NEVER_LOAD) && ! bfd_set_section_contents (output_bfd, o->output_section, contents, (file_ptr) o->output_offset, |