From e7fa75b74fad263e56946df6067f3611d289d65b Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Mon, 22 Sep 2014 16:10:55 -0700 Subject: [PATCH] Remove use of GOTPCREL in asm. Now that symbol visibility is done correctly, this shouldn't be needed. Change-Id: I608beed1de63c1309358ff17dd28e3191e87dbd4 Reviewed-on: https://boringssl-review.googlesource.com/1810 Reviewed-by: David Benjamin Reviewed-by: Adam Langley --- crypto/rc4/asm/rc4-x86_64.pl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crypto/rc4/asm/rc4-x86_64.pl b/crypto/rc4/asm/rc4-x86_64.pl index c033a41b..2c52ac08 100644 --- a/crypto/rc4/asm/rc4-x86_64.pl +++ b/crypto/rc4/asm/rc4-x86_64.pl @@ -159,8 +159,7 @@ $code.=<<___; mov -4($dat),$YY#b cmpl \$-1,256($dat) je .LRC4_CHAR - mov OPENSSL_ia32cap_P\@GOTPCREL(%rip),%r8 - mov (%r8),%r8d + mov OPENSSL_ia32cap_P(%rip),%r8d xor $TX[1],$TX[1] inc $XX[0]#b sub $XX[0],$TX[1] @@ -445,8 +444,7 @@ asm_RC4_set_key: xor %r10,%r10 xor %r11,%r11 - mov OPENSSL_ia32cap_P\@GOTPCREL(%rip),$idx - mov ($idx),$idx#d + mov OPENSSL_ia32cap_P(%rip),$idx#d bt \$20,$idx#d # RC4_CHAR? jc .Lc1stloop jmp .Lw1stloop