From: Ard Biesheuvel Date: Wed, 12 Apr 2023 11:00:29 +0000 (+0200) Subject: crypto: x86/crc32c - Use RIP-relative addressing X-Git-Tag: v6.6.7~2762^2~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b519dc878a5d19593bbb1773abedbf39a619f66;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Herbert Xu --- diff --git a/arch/x86/crypto/crc32c-pcl-intel-asm_64.S b/arch/x86/crypto/crc32c-pcl-intel-asm_64.S index ec35915..5f843dc 100644 --- a/arch/x86/crypto/crc32c-pcl-intel-asm_64.S +++ b/arch/x86/crypto/crc32c-pcl-intel-asm_64.S @@ -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 ################################################################