This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] .plt section sh_entsize on Alpha


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]