This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] .plt section sh_entsize on Alpha
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 4 Dec 2002 23:20:17 +0100
- Subject: [PATCH] .plt section sh_entsize on Alpha
- References: <20021204085005.P27455@devserv.devel.redhat.com> <20021204173631.GB12953@redhat.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Wed, Dec 04, 2002 at 09:36:31AM -0800, Richard Henderson wrote:
> On Wed, Dec 04, 2002 at 08:50:05AM -0500, Jakub Jelinek wrote:
> > Richard, shouldn't this be changed in binutils to sh_entsize 4?
>
> Or zero. Not sure what lead me set it to 32.
Is this ok to commit then?
2002-12-04 Jakub Jelinek <jakub@redhat.com>
* elf64-alpha.c (elf64_alpha_finish_dynamic_sections): Clear .plt
sh_entsize.
--- bfd/elf64-alpha.c.jj 2002-12-04 21:33:54.000000000 +0100
+++ bfd/elf64-alpha.c 2002-12-04 21:34:31.000000000 +0100
@@ -5137,8 +5137,7 @@ elf64_alpha_finish_dynamic_sections (out
bfd_put_64 (output_bfd, (bfd_vma) 0, splt->contents + 16);
bfd_put_64 (output_bfd, (bfd_vma) 0, splt->contents + 24);
- elf_section_data (splt->output_section)->this_hdr.sh_entsize =
- PLT_HEADER_SIZE;
+ elf_section_data (splt->output_section)->this_hdr.sh_entsize = 0;
}
}
Jakub