* elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate
authorAlan Modra <amodra@gmail.com>
Fri, 31 May 2002 04:19:32 +0000 (04:19 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 31 May 2002 04:19:32 +0000 (04:19 +0000)
space for bss .plt.

bfd/ChangeLog
bfd/elf64-ppc.c

index 2073604519b82cd653dca8f002158b59ce8077b7..1de0a130f801c2ee28d014f8aabd0bb8109ca9dd 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-31  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate
+       space for bss .plt.
+
 2002-05-31  Graeme Peterson  <gp@qnx.com>
 
        * Makefile.am (BFD32_BACKENDS): Add elf32-i386qnx.lo.
index ff956a583010e295acc0d3dbd771bd38338b80c0..565df014817e207cf6fb35343c2aba6876e95cbe 100644 (file)
@@ -3923,6 +3923,10 @@ ppc64_elf_size_dynamic_sections (output_bfd, info)
          continue;
        }
 
+      /* .plt is in the bss section.  We don't initialise it.  */
+      if ((s->flags & SEC_LOAD) == 0)
+       continue;
+
       /* Allocate memory for the section contents.  We use bfd_zalloc
         here in case unused entries are not reclaimed before the
         section's contents are written out.  This should not happen,
This page took 0.032048 seconds and 4 git commands to generate.