[BTRFS] Use addressing relative to RIP
authorJérôme Gardou <jerome.gardou@reactos.org>
Wed, 21 Apr 2021 17:46:30 +0000 (19:46 +0200)
committerJérôme Gardou <zefklop@users.noreply.github.com>
Wed, 28 Apr 2021 11:10:23 +0000 (13:10 +0200)
drivers/filesystems/btrfs/crc32c-amd64.S

index adfd988..dbe0354 100644 (file)
@@ -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