declare __syscall_ret as hidden in vfork asm
authorRich Felker <dalias@aerifal.cx>
Fri, 7 Sep 2018 02:03:24 +0000 (22:03 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 12 Sep 2018 18:34:29 +0000 (14:34 -0400)
without this, it's plausible that assembler or linker could complain
about an unsatisfiable relocation.

src/process/i386/vfork.s
src/process/s390x/vfork.s
src/process/x32/vfork.s
src/process/x86_64/vfork.s

index fadca20..a3d76ae 100644 (file)
@@ -9,6 +9,7 @@ vfork:
        int $128
        push %edx
        push %eax
+       .hidden __syscall_ret
        call __syscall_ret
        pop %edx
        ret
index 05956e8..2fb4022 100644 (file)
@@ -5,4 +5,5 @@
 __vfork:
 vfork:
        svc 190
+       .hidden __syscall_ret
        jg  __syscall_ret
index 1039f0f..8df0058 100644 (file)
@@ -9,4 +9,5 @@ vfork:
        syscall
        push %rdx
        mov %rax,%rdi
+       .hidden __syscall_ret
        jmp __syscall_ret
index 27af46f..2cad805 100644 (file)
@@ -9,4 +9,5 @@ vfork:
        syscall
        push %rdx
        mov %rax,%rdi
+       .hidden __syscall_ret
        jmp __syscall_ret