[krbdev.mit.edu #7815] AutoReply: Text relocations in iaesx86.s

nalin@redhat.com via RT rt-comment at krbdev.mit.edu
Fri Jan 10 14:23:49 EST 2014


--- krb5-1.12/src/lib/crypto/builtin/aes/iaesx86.s
+++ krb5-1.12/src/lib/crypto/builtin/aes/iaesx86.s
@@ -224,6 +224,8 @@
 DD 07060504h
 DD 0B0A0908h
 
+section .data
+align 16
 byte_swap_16:
 DDQ 0x000102030405060708090A0B0C0D0E0F
 
@@ -323,7 +325,10 @@
 
         movdqu [edx], xmm1
 
-        movdqa xmm5, [shuffle_mask]
+        call .next
+.next
+        pop ecx
+        movdqa xmm5, [ecx-.next+shuffle_mask]
 
         add edx,16
 
@@ -421,7 +428,10 @@
 
     add edx,32
 
-    movdqa xmm5, [shuffle_mask]  ; this mask is used by key_expansion
+    call .next
+.next
+    pop ecx
+    movdqa xmm5, [ecx-.next+shuffle_mask]  ; this mask is used by key_expansion
 
     aeskeygenassist xmm2, xmm3, 0x1     ;
     call key_expansion256



More information about the krb5-bugs mailing list