This is the mail archive of the binutils@sourceware.cygnus.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]

[PATCH] Typo fix for the R_SPARC_OLO10 patch


Hi!

I've made a typo in the R_SPARC_OLO10 patch which I have not found until I
hacked gcc up so that it emits offsetable %lo() constants.
Should I repost that patch with this single char fixed?

BTW: Anyone knows what is DT_SPARC_PLTFMT .dynamic entry for and if
something ever use it, or if it can be dropped? The whole binutils only seem
to create it and don't use it anywhere, neither does the dynamic linker in
glibc.

1999-07-07  Jakub Jelinek  <jj@ultra.linux.cz>

	* bfd/elf64-sparc.c (sparc64_elf_write_relocs): Don't access
	relocs beyond last one.

--- bfd/elf64-sparc.c.jj3	Mon Jul  5 17:11:20 1999
+++ bfd/elf64-sparc.c	Tue Jul  6 16:59:00 1999
@@ -499,7 +499,7 @@
 
       addr = sec->orelocation[idx]->address;
       if (sec->orelocation[idx]->howto->type == R_SPARC_LO10
-	  && idx < sec->reloc_count + 1)
+	  && idx < sec->reloc_count - 1)
 	{
 	  arelent *r = sec->orelocation[idx + 1];
 

Cheers,
    Jakub
___________________________________________________________________
Jakub Jelinek | jj@sunsite.mff.cuni.cz | http://sunsite.mff.cuni.cz
Administrator of SunSITE Czech Republic, MFF, Charles University
___________________________________________________________________
UltraLinux  |  http://ultra.linux.cz/  |  http://ultra.penguin.cz/
Linux version 2.3.9 on a sparc64 machine (1343.49 BogoMips)
___________________________________________________________________

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