diff options
author | Jakub Jelinek <jakub@redhat.com> | 2006-10-13 21:03:40 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2006-10-13 21:03:40 +0000 |
commit | e227f123f34827b5ac4c730d9c38a171d1cb1519 (patch) | |
tree | 10d65e948e60887a67db4aa9cc4751fc6d5ee4cc /bfd/elfxx-sparc.c | |
parent | 4c8856fdb5a3baa02308394d66a052c59d545909 (diff) | |
download | binutils-redhat-e227f123f34827b5ac4c730d9c38a171d1cb1519.tar.gz |
* elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_sections): Set
.plt sh_entsize to 0 if plt header size isn't multiple of
plt entry size or for 32-bit which adds a nop insn at the
end of the .plt section.
Diffstat (limited to 'bfd/elfxx-sparc.c')
-rw-r--r-- | bfd/elfxx-sparc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elfxx-sparc.c b/bfd/elfxx-sparc.c index 5f66fa6d9b..ccbd272760 100644 --- a/bfd/elfxx-sparc.c +++ b/bfd/elfxx-sparc.c @@ -4066,7 +4066,8 @@ _bfd_sparc_elf_finish_dynamic_sections (bfd *output_bfd, struct bfd_link_info *i } elf_section_data (splt->output_section)->this_hdr.sh_entsize - = htab->plt_entry_size; + = (htab->is_vxworks || !ABI_64_P (output_bfd)) + ? 0 : htab->plt_entry_size; } /* Set the first entry in the global offset table to the address of |