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: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Ard Biesheuvel 2023-04-12 13:00:29 +02:00 committed by Herbert Xu
parent 7f8ec31648
commit 3b519dc878

View file

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