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 fadca20731836b278190bdb884c1db75830adcc5..a3d76ae62a771c39f5cf6b186aa215ce0a144d1c 100644 (file)
@@ -9,6 +9,7 @@ vfork:
        int $128
        push %edx
        push %eax
+       .hidden __syscall_ret
        call __syscall_ret
        pop %edx
        ret
index 05956e810ccbd308a1280b286b7a56ec70c1ea4f..2fb4022ad4cb109f7429d1cffe8c51c8f7d1edfd 100644 (file)
@@ -5,4 +5,5 @@
 __vfork:
 vfork:
        svc 190
+       .hidden __syscall_ret
        jg  __syscall_ret
index 1039f0f2f109df1c7090512c80b26d3e5e33ec8c..8df0058237bc09ad669a74cf0dcf426e8b244d03 100644 (file)
@@ -9,4 +9,5 @@ vfork:
        syscall
        push %rdx
        mov %rax,%rdi
+       .hidden __syscall_ret
        jmp __syscall_ret
index 27af46f5d66eecc0d15999527436f873f5f7b898..2cad80520c326bb3402424f374373c2c5a70730b 100644 (file)
@@ -9,4 +9,5 @@ vfork:
        syscall
        push %rdx
        mov %rax,%rdi
+       .hidden __syscall_ret
        jmp __syscall_ret