mailing list of musl libc
 help / color / mirror / code / Atom feed
36333967bee9b237d5a006bf435d8a2976ba30f0 blob 354 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
 
#include <stddef.h>
#include "pthread_impl.h"

void *__tls_get_addr(size_t *v)
{
	pthread_t self = __pthread_self();
#ifdef SHARED
	__attribute__((__visibility__("hidden")))
	void *__tls_get_new(size_t *);
	if (v[0]<=(size_t)self->dtv[0])
		return (char *)self->dtv[v[0]]+v[1];
	return __tls_get_new(v);
#else
	return (char *)self->dtv[1]+v[1];
#endif
}
debug log:

solving 3633396 ...
found 3633396 in https://git.vuxu.org/mirror/musl/

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).