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 <davidben@chromium.org>
Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
Adam Langley 2014-09-22 16:10:55 -07:00
parent 01fe820ab9
commit e7fa75b74f

View File

@ -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