make arch __clone backends hidden
authorRich Felker <dalias@aerifal.cx>
Mon, 10 Sep 2018 19:36:33 +0000 (15:36 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 12 Sep 2018 18:34:31 +0000 (14:34 -0400)
these are not a public interface and are not intended to be callable
from anywhere but the public clone function or other places in libc.

16 files changed:
src/internal/pthread_impl.h
src/thread/aarch64/clone.s
src/thread/arm/clone.s
src/thread/i386/clone.s
src/thread/m68k/clone.s
src/thread/microblaze/clone.s
src/thread/mips/clone.s
src/thread/mips64/clone.s
src/thread/mipsn32/clone.s
src/thread/or1k/clone.s
src/thread/powerpc/clone.s
src/thread/powerpc64/clone.s
src/thread/s390x/clone.s
src/thread/sh/clone.s
src/thread/x32/clone.s
src/thread/x86_64/clone.s

index 3479bcf..3c85544 100644 (file)
@@ -141,7 +141,7 @@ int __init_tp(void *);
 void *__copy_tls(unsigned char *);
 void __reset_tls();
 
-int __clone(int (*)(void *), void *, int, void *, ...);
+hidden int __clone(int (*)(void *), void *, int, void *, ...);
 int __set_thread_area(void *);
 int __libc_sigaction(int, const struct sigaction *, struct sigaction *);
 void __unmapself(void *, size_t);
index 50af913..e3c8339 100644 (file)
@@ -5,6 +5,7 @@
 //         x8,        x0,    x1,    x2,   x3,  x4
 
 .global __clone
+.hidden __clone
 .type   __clone,%function
 __clone:
        // align stack and save func,arg
index fe2e0e6..e16b132 100644 (file)
@@ -1,6 +1,7 @@
 .syntax unified
 .text
 .global __clone
+.hidden __clone
 .type   __clone,%function
 __clone:
        stmfd sp!,{r4,r5,r6,r7}
index 52fe7ef..e237d3c 100644 (file)
@@ -1,5 +1,6 @@
 .text
 .global __clone
+.hidden __clone
 .type   __clone,@function
 __clone:
        push %ebp
index 5b61b6f..f6dfa06 100644 (file)
@@ -1,5 +1,6 @@
 .text
 .global __clone
+.hidden __clone
 .type   __clone,@function
 __clone:
        movem.l %d2-%d5,-(%sp)
index 13448a3..b68cc5f 100644 (file)
@@ -1,4 +1,5 @@
 .global __clone
+.hidden __clone
 .type   __clone,@function
 
 # r5, r6, r7, r8, r9, r10, stack
index 30a0146..0446338 100644 (file)
@@ -1,5 +1,6 @@
 .set noreorder
 .global __clone
+.hidden __clone
 .type   __clone,@function
 __clone:
        # Save function pointer and argument pointer on new thread stack
index 1b71e07..2d86899 100644 (file)
@@ -1,5 +1,6 @@
 .set   noreorder
 .global        __clone
+.hidden __clone
 .type  __clone,@function
 __clone:
        # Save function pointer and argument pointer on new thread stack
index ebf5dbe..4d3c8c7 100644 (file)
@@ -1,5 +1,6 @@
 .set   noreorder
 .global        __clone
+.hidden __clone
 .type  __clone,@function
 __clone:
        # Save function pointer and argument pointer on new thread stack
index 02f380b..2473ac2 100644 (file)
@@ -3,6 +3,7 @@
  * sys_clone(flags, stack, ptid, ctid, tls)
  */
 .global __clone
+.hidden __clone
 .type   __clone,@function
 __clone:
        l.addi  r4, r4, -8
index a57dbcc..da13f44 100644 (file)
@@ -1,5 +1,6 @@
 .text
 .global __clone
+.hidden __clone
 .type __clone, %function
 __clone:
 # int clone(fn, stack, flags, arg, ptid, tls, ctid)
index 03aa446..41cb678 100644 (file)
@@ -1,5 +1,6 @@
 .text
 .global __clone
+.hidden __clone
 .type __clone, %function
 __clone:
        # int clone(fn, stack, flags, arg, ptid, tls, ctid)
index 3e08c21..577748e 100644 (file)
@@ -1,5 +1,6 @@
 .text
 .global __clone
+.hidden __clone
 .type __clone, %function
 __clone:
        # int clone(
index aa4d0df..9cfd862 100644 (file)
@@ -1,5 +1,6 @@
 .text
 .global __clone
+.hidden __clone
 .type   __clone, @function
 __clone:
 ! incoming: fn stack flags arg ptid tls      ctid
index eed4615..b870880 100644 (file)
@@ -1,5 +1,6 @@
 .text
 .global __clone
+.hidden __clone
 .type   __clone,@function
 __clone:
        movl $0x40000038,%eax /* SYS_clone */
index ee59903..6e47bc0 100644 (file)
@@ -1,5 +1,6 @@
 .text
 .global __clone
+.hidden __clone
 .type   __clone,@function
 __clone:
        xor %eax,%eax