From 6f000979eb2ffef8844494ba52a7b7ca677ab615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Wed, 21 Apr 2021 19:46:30 +0200 Subject: [PATCH] [BTRFS] Use addressing relative to RIP --- drivers/filesystems/btrfs/crc32c-amd64.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/filesystems/btrfs/crc32c-amd64.S b/drivers/filesystems/btrfs/crc32c-amd64.S index adfd988384f..dbe035487c7 100644 --- a/drivers/filesystems/btrfs/crc32c-amd64.S +++ b/drivers/filesystems/btrfs/crc32c-amd64.S @@ -45,7 +45,7 @@ mov r10b, byte ptr [rdx] xor al, r10b and rax, 255 shl rax, 2 -mov r10, offset crctable +lea r10, [rip+crctable] mov eax, dword ptr [r10 + rax] xor rax, rcx