|
@@ -29,18 +29,18 @@ asm
|
|
|
{$ifdef FPC_PIC}
|
|
|
movq fpc_threadvar_relocate_proc@GOTPCREL(%rip),%rax
|
|
|
movq (%rax),%rax
|
|
|
- movq Errno@GOTPCREL(%rip),%rbx
|
|
|
+ movq Errno@GOTPCREL(%rip),%r11
|
|
|
{$else FPC_PIC}
|
|
|
movq fpc_threadvar_relocate_proc,%rax
|
|
|
- leaq Errno,%rbx
|
|
|
+ leaq Errno,%r11
|
|
|
{$endif FPC_PIC}
|
|
|
testq %rax,%rax
|
|
|
jne .LThread
|
|
|
- movl %edx,8(%rbx)
|
|
|
+ movl %edx,8(%r11)
|
|
|
jmp .LNoThread
|
|
|
.LThread:
|
|
|
pushq %rdx
|
|
|
- movq (%rbx),%rdi
|
|
|
+ movq (%r11),%rdi
|
|
|
call *%rax
|
|
|
popq %rdx
|
|
|
movl %edx,(%rax)
|
|
@@ -62,18 +62,18 @@ asm
|
|
|
{$ifdef FPC_PIC}
|
|
|
movq fpc_threadvar_relocate_proc@GOTPCREL(%rip),%rax
|
|
|
movq (%rax),%rax
|
|
|
- movq Errno@GOTPCREL(%rip),%rbx
|
|
|
+ movq Errno@GOTPCREL(%rip),%r11
|
|
|
{$else FPC_PIC}
|
|
|
movq fpc_threadvar_relocate_proc,%rax
|
|
|
- leaq Errno,%rbx
|
|
|
+ leaq Errno,%r11
|
|
|
{$endif FPC_PIC}
|
|
|
testq %rax,%rax
|
|
|
jne .LThread
|
|
|
- movl %edx,8(%rbx)
|
|
|
+ movl %edx,8(%r11)
|
|
|
jmp .LNoThread
|
|
|
.LThread:
|
|
|
pushq %rdx
|
|
|
- movq (%rbx),%rdi
|
|
|
+ movq (%r11),%rdi
|
|
|
call *%rax
|
|
|
popq %rdx
|
|
|
movl %edx,(%rax)
|
|
@@ -96,18 +96,18 @@ asm
|
|
|
{$ifdef FPC_PIC}
|
|
|
movq fpc_threadvar_relocate_proc@GOTPCREL(%rip),%rax
|
|
|
movq (%rax),%rax
|
|
|
- movq Errno@GOTPCREL(%rip),%rbx
|
|
|
+ movq Errno@GOTPCREL(%rip),%r11
|
|
|
{$else FPC_PIC}
|
|
|
movq fpc_threadvar_relocate_proc,%rax
|
|
|
- leaq Errno,%rbx
|
|
|
+ leaq Errno,%r11
|
|
|
{$endif FPC_PIC}
|
|
|
testq %rax,%rax
|
|
|
jne .LThread
|
|
|
- movl %edx,8(%rbx)
|
|
|
+ movl %edx,8(%r11)
|
|
|
jmp .LNoThread
|
|
|
.LThread:
|
|
|
pushq %rdx
|
|
|
- movq (%rbx),%rdi
|
|
|
+ movq (%r11),%rdi
|
|
|
call *%rax
|
|
|
popq %rdx
|
|
|
movl %edx,(%rax)
|
|
@@ -131,18 +131,18 @@ asm
|
|
|
{$ifdef FPC_PIC}
|
|
|
movq fpc_threadvar_relocate_proc@GOTPCREL(%rip),%rax
|
|
|
movq (%rax),%rax
|
|
|
- movq Errno@GOTPCREL(%rip),%rbx
|
|
|
+ movq Errno@GOTPCREL(%rip),%r11
|
|
|
{$else FPC_PIC}
|
|
|
movq fpc_threadvar_relocate_proc,%rax
|
|
|
- leaq Errno,%rbx
|
|
|
+ leaq Errno,%r11
|
|
|
{$endif FPC_PIC}
|
|
|
testq %rax,%rax
|
|
|
jne .LThread
|
|
|
- movl %edx,8(%rbx)
|
|
|
+ movl %edx,8(%r11)
|
|
|
jmp .LNoThread
|
|
|
.LThread:
|
|
|
pushq %rdx
|
|
|
- movq (%rbx),%rdi
|
|
|
+ movq (%r11),%rdi
|
|
|
call *%rax
|
|
|
popq %rdx
|
|
|
movl %edx,(%rax)
|
|
@@ -167,18 +167,18 @@ asm
|
|
|
{$ifdef FPC_PIC}
|
|
|
movq fpc_threadvar_relocate_proc@GOTPCREL(%rip),%rax
|
|
|
movq (%rax),%rax
|
|
|
- movq Errno@GOTPCREL(%rip),%rbx
|
|
|
+ movq Errno@GOTPCREL(%rip),%r11
|
|
|
{$else FPC_PIC}
|
|
|
movq fpc_threadvar_relocate_proc,%rax
|
|
|
- leaq Errno,%rbx
|
|
|
+ leaq Errno,%r11
|
|
|
{$endif FPC_PIC}
|
|
|
testq %rax,%rax
|
|
|
jne .LThread
|
|
|
- movl %edx,8(%rbx)
|
|
|
+ movl %edx,8(%r11)
|
|
|
jmp .LNoThread
|
|
|
.LThread:
|
|
|
pushq %rdx
|
|
|
- movq (%rbx),%rdi
|
|
|
+ movq (%r11),%rdi
|
|
|
call *%rax
|
|
|
popq %rdx
|
|
|
movl %edx,(%rax)
|
|
@@ -204,18 +204,18 @@ asm
|
|
|
{$ifdef FPC_PIC}
|
|
|
movq fpc_threadvar_relocate_proc@GOTPCREL(%rip),%rax
|
|
|
movq (%rax),%rax
|
|
|
- movq Errno@GOTPCREL(%rip),%rbx
|
|
|
+ movq Errno@GOTPCREL(%rip),%r11
|
|
|
{$else FPC_PIC}
|
|
|
movq fpc_threadvar_relocate_proc,%rax
|
|
|
- leaq Errno,%rbx
|
|
|
+ leaq Errno,%r11
|
|
|
{$endif FPC_PIC}
|
|
|
testq %rax,%rax
|
|
|
jne .LThread
|
|
|
- movl %edx,8(%rbx)
|
|
|
+ movl %edx,8(%r11)
|
|
|
jmp .LNoThread
|
|
|
.LThread:
|
|
|
pushq %rdx
|
|
|
- movq (%rbx),%rdi
|
|
|
+ movq (%r11),%rdi
|
|
|
call *%rax
|
|
|
popq %rdx
|
|
|
movl %edx,(%rax)
|
|
@@ -243,18 +243,18 @@ asm
|
|
|
{$ifdef FPC_PIC}
|
|
|
movq fpc_threadvar_relocate_proc@GOTPCREL(%rip),%rax
|
|
|
movq (%rax),%rax
|
|
|
- movq Errno@GOTPCREL(%rip),%rbx
|
|
|
+ movq Errno@GOTPCREL(%rip),%r11
|
|
|
{$else FPC_PIC}
|
|
|
movq fpc_threadvar_relocate_proc,%rax
|
|
|
- leaq Errno,%rbx
|
|
|
+ leaq Errno,%r11
|
|
|
{$endif FPC_PIC}
|
|
|
testq %rax,%rax
|
|
|
jne .LThread
|
|
|
- movl %edx,8(%rbx)
|
|
|
+ movl %edx,8(%r11)
|
|
|
jmp .LNoThread
|
|
|
.LThread:
|
|
|
pushq %rdx
|
|
|
- movq (%rbx),%rdi
|
|
|
+ movq (%r11),%rdi
|
|
|
call *%rax
|
|
|
popq %rdx
|
|
|
movl %edx,(%rax)
|