From b35c4c475bea3c8f938d8e9696d1138eabb54a89 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 18 Apr 2015 21:18:23 -0400 Subject: remove potentially PIC-incompatible relocations from x86_64 and x32 asm analogous to commit 8ed66ecbcba1dd0f899f22b534aac92a282f42d5 for i386. --- src/string/x86_64/memcpy.s | 3 +++ src/string/x86_64/memmove.s | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/string') diff --git a/src/string/x86_64/memcpy.s b/src/string/x86_64/memcpy.s index 1282dc3b..3d960efa 100644 --- a/src/string/x86_64/memcpy.s +++ b/src/string/x86_64/memcpy.s @@ -1,6 +1,9 @@ .global memcpy +.global __memcpy_fwd +.hidden __memcpy_fwd .type memcpy,@function memcpy: +__memcpy_fwd: mov %rdi,%rax cmp $8,%rdx jc 1f diff --git a/src/string/x86_64/memmove.s b/src/string/x86_64/memmove.s index 247f0ac3..172c0252 100644 --- a/src/string/x86_64/memmove.s +++ b/src/string/x86_64/memmove.s @@ -4,7 +4,8 @@ memmove: mov %rdi,%rax sub %rsi,%rax cmp %rdx,%rax - jae memcpy +.hidden __memcpy_fwd + jae __memcpy_fwd mov %rdx,%rcx lea -1(%rdi,%rdx),%rdi lea -1(%rsi,%rdx),%rsi -- cgit v1.2.1