mailing list of musl libc
 help / color / mirror / code / Atom feed
5eb68ba3e29c1288f082710ba67aa73d2cf3f0df blob 701 bytes (raw)

 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
27
28
29
30
31
32
33
 
.text
.global __tlsdesc_static
.hidden __tlsdesc_static
.type __tlsdesc_static,%function
__tlsdesc_static:
       ld a0,8(a0)
       jr t0

.global __tlsdesc_dynamic
.hidden __tlsdesc_dynamic
.type __tlsdesc_dynamic,%function
__tlsdesc_dynamic:
       add sp,sp,-16
       sd t1,(sp)
       sd t2,8(sp)

       ld t2,-8(tp) # t2=dtv

       ld a0,8(a0)  # a0=&{modidx,off}
       ld t1,8(a0)  # t1=off
       ld a0,(a0)   # a0=modidx
       sll a0,a0,3  # a0=8*modidx

       add a0,a0,t2 # a0=dtv+8*modidx
       ld a0,(a0)   # a0=dtv[modidx]
       add a0,a0,t1 # a0=dtv[modidx]+off
       sub a0,a0,tp # a0=dtv[modidx]+off-tp

       ld t1,(sp)
       ld t2,8(sp)
       add sp,sp,16
       jr t0

debug log:

solving 56d1ce89 ...
found 56d1ce89 in https://inbox.vuxu.org/musl/DS7PR12MB5765FAA341DFA3E7D08BC9C0CB742@DS7PR12MB5765.namprd12.prod.outlook.com/

applying [1/1] https://inbox.vuxu.org/musl/DS7PR12MB5765FAA341DFA3E7D08BC9C0CB742@DS7PR12MB5765.namprd12.prod.outlook.com/
diff --git c/src/ldso/riscv64/tlsdesc.s i/src/ldso/riscv64/tlsdesc.s
new file mode 100644
index 00000000..56d1ce89

Checking patch src/ldso/riscv64/tlsdesc.s...
1:39: new blank line at EOF.
+
Applied patch src/ldso/riscv64/tlsdesc.s cleanly.
warning: 1 line adds whitespace errors.

index at:
100644 5eb68ba3e29c1288f082710ba67aa73d2cf3f0df	src/ldso/riscv64/tlsdesc.s

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).