* elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
authorAlan Modra <amodra@gmail.com>
Thu, 14 Feb 2002 04:12:24 +0000 (04:12 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 14 Feb 2002 04:12:24 +0000 (04:12 +0000)
bfd/ChangeLog
bfd/elf.c

index 7d55773a22aa7b1efb6509e2b7601d3653dd42cf..bbea17db6c27795f2f5199427a6f29df5b780adf 100644 (file)
@@ -1,3 +1,7 @@
+2002-02-14  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
+
 2002-02-17  Matt Fredette  <fredette@netbsd.org>
 
        * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
@@ -6,8 +10,8 @@
 2002-02-13  Nick Clifton  <nickc@cambridge.redhat.com>
 
        * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
-        non-zero physical addresses when adjusting the LMAs of new
-        sections.
+       non-zero physical addresses when adjusting the LMAs of new
+       sections.
 
 2002-02-12  John David Anglin  <dave@hiauly1.hia.nrc.ca>
 
index f75eb8587d0db5ab673642a184fac81bc0635b1d..7f63b34adcc3bc16c88fe979a92894c6122afc0e 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -2219,7 +2219,8 @@ elf_fake_sections (abfd, asect, failedptrarg)
       this_hdr->sh_entsize = 4;
     }
   else if ((asect->flags & SEC_ALLOC) != 0
-          && ((asect->flags & (SEC_LOAD | SEC_HAS_CONTENTS)) == 0))
+          && (((asect->flags & (SEC_LOAD | SEC_HAS_CONTENTS)) == 0)
+              || (asect->flags & SEC_NEVER_LOAD) != 0))
     this_hdr->sh_type = SHT_NOBITS;
   else
     this_hdr->sh_type = SHT_PROGBITS;
This page took 0.029328 seconds and 4 git commands to generate.