summaryrefslogtreecommitdiff
path: root/bfd/elf64-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2002-05-31 04:19:32 +0000
committerAlan Modra <amodra@bigpond.net.au>2002-05-31 04:19:32 +0000
commitdccc08f28029fc7665510267852b0c663671c25b (patch)
treecf29967aa95217d9b3a6547a1d7bc7fb5155a159 /bfd/elf64-ppc.c
parentc664a71c98e1c8ea05341969ed6010ee2e77b021 (diff)
downloadbinutils-redhat-dccc08f28029fc7665510267852b0c663671c25b.tar.gz
* elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate
space for bss .plt.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r--bfd/elf64-ppc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index ff956a5830..565df01481 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -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,