summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2015-04-17 12:02:46 +0100
committerRich Felker <dalias@aerifal.cx>2015-04-17 23:27:54 -0400
commitca7977b56fc126e933ced21321a24db5477e085b (patch)
tree084f704260d2c1cceccda0e4ade61f2be706f92e /src
parent326e126faf91e2c18a8a656fbb0daab54b1818d6 (diff)
downloadmusl-ca7977b56fc126e933ced21321a24db5477e085b.tar.gz
musl-ca7977b56fc126e933ced21321a24db5477e085b.tar.bz2
musl-ca7977b56fc126e933ced21321a24db5477e085b.tar.xz
musl-ca7977b56fc126e933ced21321a24db5477e085b.zip
comment fixes in aarch64 tlsdesc asm
Diffstat (limited to 'src')
-rw-r--r--src/ldso/aarch64/tlsdesc.s8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ldso/aarch64/tlsdesc.s b/src/ldso/aarch64/tlsdesc.s
index 05ddbab4..69737b2d 100644
--- a/src/ldso/aarch64/tlsdesc.s
+++ b/src/ldso/aarch64/tlsdesc.s
@@ -1,4 +1,4 @@
-// long __tlsdesc_static(long *a)
+// size_t __tlsdesc_static(size_t *a)
// {
// return a[1];
// }
@@ -10,13 +10,13 @@ __tlsdesc_static:
.hidden __tls_get_new
-// long __tlsdesc_dynamic(long *a)
+// size_t __tlsdesc_dynamic(size_t *a)
// {
// struct {size_t modidx,off;} *p = (void*)a[1];
// size_t *dtv = *(size_t**)(tp + 16 - 8);
// if (p->modidx <= dtv[0])
// return dtv[p->modidx] + p->off - tp;
-// return __tls_get_addr(p) - tp;
+// return __tls_get_new(p) - tp;
// }
.global __tlsdesc_dynamic
.type __tlsdesc_dynamic,@function
@@ -40,7 +40,7 @@ __tlsdesc_dynamic:
ret
// save all registers __tls_get_new may clobber
- // ugly because addr offset must be in [-512,509]
+ // update sp in two steps because offset must be in [-512,509]
1: stp x29,x30,[sp,#-160]!
stp x5,x6,[sp,#16]
stp x7,x8,[sp,#32]