aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic/dl-extra_tls.h
blob: 7f5b10d3e867e090505e1da70b347d7d0109a20f (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
/* extra tls utils for the dynamic linker.  Generic stub version.
   Copyright (C) 2025 Free Software Foundation, Inc.
   This file is part of the GNU C Library.

   The GNU C Library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 of the License, or (at your option) any later version.

   The GNU C Library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Lesser General Public License for more details.

   You should have received a copy of the GNU Lesser General Public
   License along with the GNU C Library; if not, see
   <https://www.gnu.org/licenses/>.  */

#ifndef _DL_EXTRA_TLS_H
#define _DL_EXTRA_TLS_H 1
#include <stddef.h>

/* In this generic version, the extra TLS block is unused.  */

/* Returns the size of the extra TLS block, it must always be a multiple of the
   alignment.  */
static inline size_t
_dl_extra_tls_get_size (void)
{
	return 0;
}

/* Returns the alignment requirements of the extra TLS block.  */
static inline size_t
_dl_extra_tls_get_align (void)
{
	return 0;
}

/* Record the offset of the extra TLS block from the thread pointer.  */
static inline void
_dl_extra_tls_set_offset (ptrdiff_t tls_offset __attribute__ ((unused)))
{
}

#endif