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]

Re: elf64-ppc.c question


On Sun, Oct 06, 2002 at 11:16:42PM +0200, Jakub Jelinek wrote:
> Maybe I'm too sleepy, but where is indx incremented in
> ppc64_elf_build_stubs?

Oops!  And thanks..

	* elf64-ppc.c (ppc64_elf_build_stubs): Increment .glink indx.

Index: bfd/elf64-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-ppc.c,v
retrieving revision 1.64
diff -u -p -r1.64 elf64-ppc.c
--- bfd/elf64-ppc.c	26 Sep 2002 05:19:12 -0000	1.64
+++ bfd/elf64-ppc.c	7 Oct 2002 00:00:23 -0000
@@ -5161,6 +5161,7 @@ ppc64_elf_build_stubs (info)
 	    }
 	  bfd_put_32 (htab->sglink->owner,
 		      B_DOT | ((htab->sglink->contents - p) & 0x3fffffc), p);
+	  indx++;
 	  p += 4;
 	}
       htab->sglink->_cooked_size = p - htab->sglink->contents;


-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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