diff options
author | Alan Modra <amodra@bigpond.net.au> | 2002-05-31 04:19:32 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2002-05-31 04:19:32 +0000 |
commit | 832eb093f16c14c06091f3e164b768837d0f41ca (patch) | |
tree | a4d407f2be6b7d6f5e076bc8253d545a16d542d8 /bfd | |
parent | 25d77008a2b7adf8be59df5fd67c045b9a947be0 (diff) | |
download | gdb-832eb093f16c14c06091f3e164b768837d0f41ca.tar.gz |
* elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate
space for bss .plt.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf64-ppc.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 2073604519b..1de0a130f80 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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. diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index ff956a58301..565df014817 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, |