about summary refs log tree commit diff
path: root/sysdeps/powerpc/powerpc32/dl-machine.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/powerpc/powerpc32/dl-machine.c')
-rw-r--r--sysdeps/powerpc/powerpc32/dl-machine.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sysdeps/powerpc/powerpc32/dl-machine.c b/sysdeps/powerpc/powerpc32/dl-machine.c
index d444aa5da9..6443608886 100644
--- a/sysdeps/powerpc/powerpc32/dl-machine.c
+++ b/sysdeps/powerpc/powerpc32/dl-machine.c
@@ -415,10 +415,10 @@ __process_machine_rela (struct link_map *map,
       return;
 
     case R_PPC_UADDR32:
-      ((char *) reloc_addr)[0] = value >> 24;
-      ((char *) reloc_addr)[1] = value >> 16;
-      ((char *) reloc_addr)[2] = value >> 8;
-      ((char *) reloc_addr)[3] = value;
+      ((char *) reloc_addr)[0] = finaladdr >> 24;
+      ((char *) reloc_addr)[1] = finaladdr >> 16;
+      ((char *) reloc_addr)[2] = finaladdr >> 8;
+      ((char *) reloc_addr)[3] = finaladdr;
       break;
 
     case R_PPC_ADDR24:
@@ -436,8 +436,8 @@ __process_machine_rela (struct link_map *map,
     case R_PPC_UADDR16:
       if (__builtin_expect (finaladdr > 0x7fff && finaladdr < 0xffff8000, 0))
 	dl_reloc_overflow (map,  "R_PPC_UADDR16", reloc_addr, sym, refsym);
-      ((char *) reloc_addr)[0] = value >> 8;
-      ((char *) reloc_addr)[1] = value;
+      ((char *) reloc_addr)[0] = finaladdr >> 8;
+      ((char *) reloc_addr)[1] = finaladdr;
       break;
 
     case R_PPC_ADDR16_LO: