From: Jakub Jelinek Date: Fri, 13 Oct 2006 21:03:40 +0000 (+0000) Subject: * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_sections): Set X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7eeb1be681e4e07ece34d439aff8968897cbe7e7;p=binutils-gdb.git * 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. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index db0ee249b07..5310dcdab0b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2006-10-13 Jakub Jelinek + + * 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. + 2006-10-12 Bob Wilson * elf32-xtensa.c (elf_xtensa_action_discarded): New. diff --git a/bfd/elfxx-sparc.c b/bfd/elfxx-sparc.c index 5f66fa6d9b8..ccbd2727607 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