diff options
author | Alan Modra <amodra@gmail.com> | 2002-05-31 04:19:32 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-05-31 04:19:32 +0000 |
commit | 5f3333946767ea7e69f77552d1350eca3e239bc1 (patch) | |
tree | a9e0715c42040cb16235f5b1e94ce7c3ce597c5f /bfd/elf64-ppc.c | |
parent | a0cb91c65777580306e1c6cb70bb2362e0c08962 (diff) | |
download | gdb-5f3333946767ea7e69f77552d1350eca3e239bc1.zip gdb-5f3333946767ea7e69f77552d1350eca3e239bc1.tar.gz gdb-5f3333946767ea7e69f77552d1350eca3e239bc1.tar.bz2 |
* 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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index ff956a5..565df01 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, |