mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 12:14:06 +00:00
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:
parent
7f8ec31648
commit
3b519dc878
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
################################################################
|
||||
|
|
Loading…
Add table
Reference in a new issue