File: aarch64-define-__clone.diff

package info (click to toggle)
dietlibc 0.34~cvs20160606-19
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,768 kB
  • sloc: ansic: 71,692; asm: 13,008; cpp: 1,860; makefile: 817; sh: 300; perl: 62
file content (25 lines) | stat: -rw-r--r-- 599 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: aarch64: define __clone, make clone weak
 libpthread requires an internal __clone to be defined and clone to be
 a weak alias against it. Otherwise linking against -lpthread would
 fail in many cases.
Author: Christian Seiler <christian@iwakd.de>
Last-Update: 2017-01-05

--- a/aarch64/clone.S
+++ b/aarch64/clone.S
@@ -3,7 +3,8 @@
 
 #include <errno.h>
 
-FUNC_START	clone
+FUNC_START_WEAK	clone
+FUNC_START	__clone
 	/* sanity checks */
 	cbz	x0, .Linval
 	cbz	x1, .Linval
@@ -26,4 +27,5 @@ FUNC_START	clone
 	ldp	x1, x0, [sp], #16
 	blr	x1
 	b	exit
+FUNC_END	__clone
 FUNC_END	clone