File: aarch64-define-__clone.diff

package info (click to toggle)
dietlibc 0.34~cvs20160606-12
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 11,388 kB
  • sloc: ansic: 71,664; asm: 13,008; cpp: 1,860; makefile: 804; sh: 292; perl: 62
file content (26 lines) | stat: -rw-r--r-- 668 bytes parent folder | download | duplicates (4)
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
26
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
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- 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