diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h index 3479bcf68398f8688e3c90d1570ac257b3570868..3c85544cca89d93661138c04887f8551c05c8405 100644 --- a/src/internal/pthread_impl.h +++ b/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); diff --git a/src/thread/aarch64/clone.s b/src/thread/aarch64/clone.s index 50af913ce696796216e9d6551f92c7ac3a82dd97..e3c83395cad25634fbd6597aef8f7dc2e74046d5 100644 --- a/src/thread/aarch64/clone.s +++ b/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 diff --git a/src/thread/arm/clone.s b/src/thread/arm/clone.s index fe2e0e60ec4c9e5963fe55d5a940f4028f6c39da..e16b13260e60c9699aa084b1c98471b919d00e8d 100644 --- a/src/thread/arm/clone.s +++ b/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} diff --git a/src/thread/i386/clone.s b/src/thread/i386/clone.s index 52fe7efbd442ca561bc9ddac05216433c9665a45..e237d3c6324b984601048c07d8b7976b6c6e601a 100644 --- a/src/thread/i386/clone.s +++ b/src/thread/i386/clone.s @@ -1,5 +1,6 @@ .text .global __clone +.hidden __clone .type __clone,@function __clone: push %ebp diff --git a/src/thread/m68k/clone.s b/src/thread/m68k/clone.s index 5b61b6fa61d55782d3e9bb2feb3cde5a150be2d2..f6dfa06f49daef59a7e49b2e6525ec5e800fb5c5 100644 --- a/src/thread/m68k/clone.s +++ b/src/thread/m68k/clone.s @@ -1,5 +1,6 @@ .text .global __clone +.hidden __clone .type __clone,@function __clone: movem.l %d2-%d5,-(%sp) diff --git a/src/thread/microblaze/clone.s b/src/thread/microblaze/clone.s index 13448a33a81acb005ceb61ddf4ec462a6dcb396d..b68cc5fc22130c1ee6460192f49a0033d133c84c 100644 --- a/src/thread/microblaze/clone.s +++ b/src/thread/microblaze/clone.s @@ -1,4 +1,5 @@ .global __clone +.hidden __clone .type __clone,@function # r5, r6, r7, r8, r9, r10, stack diff --git a/src/thread/mips/clone.s b/src/thread/mips/clone.s index 30a0146bad8db6677546563aff3f073d397dab9e..0446338568f0a8add741a32427a5b042fc1036b4 100644 --- a/src/thread/mips/clone.s +++ b/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 diff --git a/src/thread/mips64/clone.s b/src/thread/mips64/clone.s index 1b71e07c793c8a5c749abc21a8a91c4bddd68fcb..2d86899a1daa0c43991fb7e4ad07f929ad788d09 100644 --- a/src/thread/mips64/clone.s +++ b/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 diff --git a/src/thread/mipsn32/clone.s b/src/thread/mipsn32/clone.s index ebf5dbeae2b519695164ad61c154b37b241da9ae..4d3c8c7a2502e96a4eafa9b0eaf2534d4e23f59f 100644 --- a/src/thread/mipsn32/clone.s +++ b/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 diff --git a/src/thread/or1k/clone.s b/src/thread/or1k/clone.s index 02f380bd5f96db837840e4be2365c24e61252155..2473ac2040366733ca60059065a1520e7b367a1e 100644 --- a/src/thread/or1k/clone.s +++ b/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 diff --git a/src/thread/powerpc/clone.s b/src/thread/powerpc/clone.s index a57dbcced8f357c13db3ac23e727823a5597da05..da13f446c03a3d134f7e0aa52c083e26ffa1c168 100644 --- a/src/thread/powerpc/clone.s +++ b/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) diff --git a/src/thread/powerpc64/clone.s b/src/thread/powerpc64/clone.s index 03aa446819e95f3fd5aad74ff9a54c1ad24fb692..41cb6787a7bca59a9f0ff5e3545b8cf992b67bff 100644 --- a/src/thread/powerpc64/clone.s +++ b/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) diff --git a/src/thread/s390x/clone.s b/src/thread/s390x/clone.s index 3e08c21356b15ff216664d6aa899154cdf71fa11..577748eab3b3ab52968792b9730487d81cdfda47 100644 --- a/src/thread/s390x/clone.s +++ b/src/thread/s390x/clone.s @@ -1,5 +1,6 @@ .text .global __clone +.hidden __clone .type __clone, %function __clone: # int clone( diff --git a/src/thread/sh/clone.s b/src/thread/sh/clone.s index aa4d0dfd7e9fa29918cb31774ae6d0de7b77d4d2..9cfd8623c5d3cf1d5b9bc83d33a32a713f2e6d0a 100644 --- a/src/thread/sh/clone.s +++ b/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 diff --git a/src/thread/x32/clone.s b/src/thread/x32/clone.s index eed461510baa9b1499996ab3c773268261c4ac07..b870880f93d4754f4b36e67affa388bb4784be6d 100644 --- a/src/thread/x32/clone.s +++ b/src/thread/x32/clone.s @@ -1,5 +1,6 @@ .text .global __clone +.hidden __clone .type __clone,@function __clone: movl $0x40000038,%eax /* SYS_clone */ diff --git a/src/thread/x86_64/clone.s b/src/thread/x86_64/clone.s index ee59903a2e336d2049c876e3bce7d78c1975dfe4..6e47bc0a37dee7157ceaf1369659891a2d7d16bb 100644 --- a/src/thread/x86_64/clone.s +++ b/src/thread/x86_64/clone.s @@ -1,5 +1,6 @@ .text .global __clone +.hidden __clone .type __clone,@function __clone: xor %eax,%eax