Commit 3b519dc8 authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Herbert Xu
Browse files

crypto: x86/crc32c - Use RIP-relative addressing



Prefer RIP-relative addressing where possible, which removes the need
for boot time relocation fixups.

Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 7f8ec316
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -168,7 +168,8 @@ continue_block:
	xor     crc2, crc2

	## branch into array
	mov	jump_table(,%rax,8), %bufp
	leaq	jump_table(%rip), %bufp
	mov	(%bufp,%rax,8), %bufp
	JMP_NOSPEC bufp

	################################################################