Skip to content

Commit 9d5aef1

Browse files
ardbiesheuvelherbertx
authored andcommitted
crypto: x86/aegis128 - Use RIP-relative addressing
Prefer RIP-relative addressing where possible, which removes the need for boot time relocation fixups. Signed-off-by: Ard Biesheuvel <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 586d492 commit 9d5aef1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/x86/crypto/aegis128-aesni-asm.S

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ SYM_FUNC_START(crypto_aegis128_aesni_init)
201201
movdqa KEY, STATE4
202202

203203
/* load the constants: */
204-
movdqa .Laegis128_const_0, STATE2
205-
movdqa .Laegis128_const_1, STATE1
204+
movdqa .Laegis128_const_0(%rip), STATE2
205+
movdqa .Laegis128_const_1(%rip), STATE1
206206
pxor STATE2, STATE3
207207
pxor STATE1, STATE4
208208

@@ -682,7 +682,7 @@ SYM_TYPED_FUNC_START(crypto_aegis128_aesni_dec_tail)
682682
punpcklbw T0, T0
683683
punpcklbw T0, T0
684684
punpcklbw T0, T0
685-
movdqa .Laegis128_counter, T1
685+
movdqa .Laegis128_counter(%rip), T1
686686
pcmpgtb T1, T0
687687
pand T0, MSG
688688

0 commit comments

Comments
 (0)