فهرست منبع

make arch __clone backends hidden

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.
Rich Felker 6 سال پیش
والد
کامیت
f5f7673d71

+ 1 - 1
src/internal/pthread_impl.h

@@ -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);

+ 1 - 0
src/thread/aarch64/clone.s

@@ -5,6 +5,7 @@
 //         x8,        x0,    x1,    x2,   x3,  x4
 
 .global __clone
+.hidden __clone
 .type   __clone,%function
 __clone:
 	// align stack and save func,arg

+ 1 - 0
src/thread/arm/clone.s

@@ -1,6 +1,7 @@
 .syntax unified
 .text
 .global __clone
+.hidden __clone
 .type   __clone,%function
 __clone:
 	stmfd sp!,{r4,r5,r6,r7}

+ 1 - 0
src/thread/i386/clone.s

@@ -1,5 +1,6 @@
 .text
 .global __clone
+.hidden __clone
 .type   __clone,@function
 __clone:
 	push %ebp

+ 1 - 0
src/thread/m68k/clone.s

@@ -1,5 +1,6 @@
 .text
 .global __clone
+.hidden __clone
 .type   __clone,@function
 __clone:
 	movem.l %d2-%d5,-(%sp)

+ 1 - 0
src/thread/microblaze/clone.s

@@ -1,4 +1,5 @@
 .global __clone
+.hidden __clone
 .type   __clone,@function
 
 # r5, r6, r7, r8, r9, r10, stack

+ 1 - 0
src/thread/mips/clone.s

@@ -1,5 +1,6 @@
 .set noreorder
 .global __clone
+.hidden __clone
 .type   __clone,@function
 __clone:
 	# Save function pointer and argument pointer on new thread stack

+ 1 - 0
src/thread/mips64/clone.s

@@ -1,5 +1,6 @@
 .set	noreorder
 .global	__clone
+.hidden __clone
 .type	__clone,@function
 __clone:
 	# Save function pointer and argument pointer on new thread stack

+ 1 - 0
src/thread/mipsn32/clone.s

@@ -1,5 +1,6 @@
 .set	noreorder
 .global	__clone
+.hidden __clone
 .type	__clone,@function
 __clone:
 	# Save function pointer and argument pointer on new thread stack

+ 1 - 0
src/thread/or1k/clone.s

@@ -3,6 +3,7 @@
  * sys_clone(flags, stack, ptid, ctid, tls)
  */
 .global __clone
+.hidden __clone
 .type   __clone,@function
 __clone:
 	l.addi	r4, r4, -8

+ 1 - 0
src/thread/powerpc/clone.s

@@ -1,5 +1,6 @@
 .text
 .global __clone
+.hidden __clone
 .type __clone, %function
 __clone:
 # int clone(fn, stack, flags, arg, ptid, tls, ctid)

+ 1 - 0
src/thread/powerpc64/clone.s

@@ -1,5 +1,6 @@
 .text
 .global __clone
+.hidden __clone
 .type __clone, %function
 __clone:
 	# int clone(fn, stack, flags, arg, ptid, tls, ctid)

+ 1 - 0
src/thread/s390x/clone.s

@@ -1,5 +1,6 @@
 .text
 .global __clone
+.hidden __clone
 .type __clone, %function
 __clone:
 	# int clone(

+ 1 - 0
src/thread/sh/clone.s

@@ -1,5 +1,6 @@
 .text
 .global __clone
+.hidden __clone
 .type   __clone, @function
 __clone:
 ! incoming: fn stack flags arg ptid tls      ctid

+ 1 - 0
src/thread/x32/clone.s

@@ -1,5 +1,6 @@
 .text
 .global __clone
+.hidden __clone
 .type   __clone,@function
 __clone:
 	movl $0x40000038,%eax /* SYS_clone */

+ 1 - 0
src/thread/x86_64/clone.s

@@ -1,5 +1,6 @@
 .text
 .global __clone
+.hidden __clone
 .type   __clone,@function
 __clone:
 	xor %eax,%eax