* elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate

space for bss .plt.
This commit is contained in:
Alan Modra 2002-05-31 04:19:32 +00:00
parent a0cb91c657
commit 5f33339467
2 changed files with 9 additions and 0 deletions

View 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.

View 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,