mirror of
https://github.com/fluencelabs/musl
synced 2025-06-28 06:02:04 +00:00
remove potentially PIC-incompatible relocations from x86_64 and x32 asm
analogous to commit 8ed66ecbcb
for i386.
This commit is contained in:
@ -37,7 +37,7 @@ expl:
|
|||||||
fstpt (%esp)
|
fstpt (%esp)
|
||||||
fstpt 16(%esp)
|
fstpt 16(%esp)
|
||||||
fstpt 32(%esp)
|
fstpt 32(%esp)
|
||||||
call exp2l
|
call exp2l@PLT
|
||||||
# if 2^hi == inf return 2^hi
|
# if 2^hi == inf return 2^hi
|
||||||
fld %st(0)
|
fld %st(0)
|
||||||
fstpt (%esp)
|
fstpt (%esp)
|
||||||
|
@ -37,7 +37,7 @@ expl:
|
|||||||
fstpt (%rsp)
|
fstpt (%rsp)
|
||||||
fstpt 16(%rsp)
|
fstpt 16(%rsp)
|
||||||
fstpt 32(%rsp)
|
fstpt 32(%rsp)
|
||||||
call exp2l
|
call exp2l@PLT
|
||||||
# if 2^hi == inf return 2^hi
|
# if 2^hi == inf return 2^hi
|
||||||
fld %st(0)
|
fld %st(0)
|
||||||
fstpt (%rsp)
|
fstpt (%rsp)
|
||||||
|
@ -11,7 +11,7 @@ __sigsetjmp:
|
|||||||
mov %rbx,72+8(%rdi)
|
mov %rbx,72+8(%rdi)
|
||||||
mov %rdi,%rbx
|
mov %rdi,%rbx
|
||||||
|
|
||||||
call setjmp
|
call setjmp@PLT
|
||||||
|
|
||||||
pushq 64(%rbx)
|
pushq 64(%rbx)
|
||||||
mov %rbx,%rdi
|
mov %rbx,%rdi
|
||||||
@ -21,4 +21,4 @@ __sigsetjmp:
|
|||||||
.hidden __sigsetjmp_tail
|
.hidden __sigsetjmp_tail
|
||||||
jmp __sigsetjmp_tail
|
jmp __sigsetjmp_tail
|
||||||
|
|
||||||
1: jmp setjmp
|
1: jmp setjmp@PLT
|
||||||
|
@ -11,7 +11,7 @@ __sigsetjmp:
|
|||||||
mov %rbx,72+8(%rdi)
|
mov %rbx,72+8(%rdi)
|
||||||
mov %rdi,%rbx
|
mov %rdi,%rbx
|
||||||
|
|
||||||
call setjmp
|
call setjmp@PLT
|
||||||
|
|
||||||
pushq 64(%rbx)
|
pushq 64(%rbx)
|
||||||
mov %rbx,%rdi
|
mov %rbx,%rdi
|
||||||
@ -21,4 +21,4 @@ __sigsetjmp:
|
|||||||
.hidden __sigsetjmp_tail
|
.hidden __sigsetjmp_tail
|
||||||
jmp __sigsetjmp_tail
|
jmp __sigsetjmp_tail
|
||||||
|
|
||||||
1: jmp setjmp
|
1: jmp setjmp@PLT
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
.global memcpy
|
.global memcpy
|
||||||
|
.global __memcpy_fwd
|
||||||
|
.hidden __memcpy_fwd
|
||||||
.type memcpy,@function
|
.type memcpy,@function
|
||||||
memcpy:
|
memcpy:
|
||||||
|
__memcpy_fwd:
|
||||||
mov %rdi,%rax
|
mov %rdi,%rax
|
||||||
cmp $8,%rdx
|
cmp $8,%rdx
|
||||||
jc 1f
|
jc 1f
|
||||||
|
@ -4,7 +4,8 @@ memmove:
|
|||||||
mov %rdi,%rax
|
mov %rdi,%rax
|
||||||
sub %rsi,%rax
|
sub %rsi,%rax
|
||||||
cmp %rdx,%rax
|
cmp %rdx,%rax
|
||||||
jae memcpy
|
.hidden __memcpy_fwd
|
||||||
|
jae __memcpy_fwd
|
||||||
mov %rdx,%rcx
|
mov %rdx,%rcx
|
||||||
lea -1(%rdi,%rdx),%rdi
|
lea -1(%rdi,%rdx),%rdi
|
||||||
lea -1(%rsi,%rdx),%rsi
|
lea -1(%rsi,%rdx),%rsi
|
||||||
|
Reference in New Issue
Block a user