fix arm/dl-machine.h

Andreas Jaeger aj@suse.de
Wed Dec 12 01:02:00 GMT 2001


I've committed the appended patch,
Andreas

Index: sysdeps/arm/dl-machine.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/arm/dl-machine.h,v
retrieving revision 1.33
diff -u -p -r1.33 dl-machine.h
--- dl-machine.h	2001/12/12 00:11:47	1.33
+++ dl-machine.h	2001/12/12 09:01:11
@@ -566,7 +566,7 @@ elf_machine_rela (struct link_map *map, 
 	     if (topbits != 0xfe000000 && topbits != 0x00000000)
 	       {
 		 newvalue = fix_bad_pc24(reloc_addr, value)
-		   - (Elf32_Addr)reloc_addr + (addend << 2);
+		   - (Elf32_Addr)reloc_addr + (reloc->r_addend << 2);
 		 topbits = newvalue & 0xfe000000;
 		 if (topbits != 0xfe000000 && topbits != 0x00000000)
 		   {

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj



More information about the Libc-hacker mailing list