summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-09-06 22:03:24 -0400
committerRich Felker <dalias@aerifal.cx>2018-09-12 14:34:29 -0400
commitaee11e5acc2a8e56a9c8d841ac4470d9511b5008 (patch)
tree061c117c93330233117780316243ac2bee539bef
parenta8c53794a00f7a432a846cb649b4908ceba322b9 (diff)
downloadmusl-aee11e5acc2a8e56a9c8d841ac4470d9511b5008.tar.gz
musl-aee11e5acc2a8e56a9c8d841ac4470d9511b5008.tar.bz2
musl-aee11e5acc2a8e56a9c8d841ac4470d9511b5008.tar.xz
musl-aee11e5acc2a8e56a9c8d841ac4470d9511b5008.zip
declare __syscall_ret as hidden in vfork asm
without this, it's plausible that assembler or linker could complain about an unsatisfiable relocation.
-rw-r--r--src/process/i386/vfork.s1
-rw-r--r--src/process/s390x/vfork.s1
-rw-r--r--src/process/x32/vfork.s1
-rw-r--r--src/process/x86_64/vfork.s1
4 files changed, 4 insertions, 0 deletions
diff --git a/src/process/i386/vfork.s b/src/process/i386/vfork.s
index fadca207..a3d76ae6 100644
--- a/src/process/i386/vfork.s
+++ b/src/process/i386/vfork.s
@@ -9,6 +9,7 @@ vfork:
int $128
push %edx
push %eax
+ .hidden __syscall_ret
call __syscall_ret
pop %edx
ret
diff --git a/src/process/s390x/vfork.s b/src/process/s390x/vfork.s
index 05956e81..2fb4022a 100644
--- a/src/process/s390x/vfork.s
+++ b/src/process/s390x/vfork.s
@@ -5,4 +5,5 @@
__vfork:
vfork:
svc 190
+ .hidden __syscall_ret
jg __syscall_ret
diff --git a/src/process/x32/vfork.s b/src/process/x32/vfork.s
index 1039f0f2..8df00582 100644
--- a/src/process/x32/vfork.s
+++ b/src/process/x32/vfork.s
@@ -9,4 +9,5 @@ vfork:
syscall
push %rdx
mov %rax,%rdi
+ .hidden __syscall_ret
jmp __syscall_ret
diff --git a/src/process/x86_64/vfork.s b/src/process/x86_64/vfork.s
index 27af46f5..2cad8052 100644
--- a/src/process/x86_64/vfork.s
+++ b/src/process/x86_64/vfork.s
@@ -9,4 +9,5 @@ vfork:
syscall
push %rdx
mov %rax,%rdi
+ .hidden __syscall_ret
jmp __syscall_ret