From aee11e5acc2a8e56a9c8d841ac4470d9511b5008 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 6 Sep 2018 22:03:24 -0400 Subject: [PATCH] declare __syscall_ret as hidden in vfork asm without this, it's plausible that assembler or linker could complain about an unsatisfiable relocation. --- src/process/i386/vfork.s | 1 + src/process/s390x/vfork.s | 1 + src/process/x32/vfork.s | 1 + src/process/x86_64/vfork.s | 1 + 4 files changed, 4 insertions(+) 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 -- 2.25.1