Skip to content

Commit ef4cf46

Browse files
committed
hurd: Add tlsdesc.sym
* sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
1 parent ac56adb commit ef4cf46

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
* bits/fcntl.h: Fix comment for FREAD and FWRITE.
3030
* sysdeps/mach/hurd/bits/fcntl.h: Likewise.
3131
* sysdeps/mach/hurd/hp-timing.h: New file.
32+
* sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
3233

3334
2018-01-29 Darius Rad <[email protected]>
3435

sysdeps/mach/hurd/i386/tlsdesc.sym

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#include <stddef.h>
2+
#include <sysdep.h>
3+
#include <tls.h>
4+
#include <link.h>
5+
#include <dl-tlsdesc.h>
6+
7+
--
8+
9+
-- We have to override sysdeps/i386/tlsdesc.sym to adapt to our libpthread.
10+
11+
-- Abuse tls.h macros to derive offsets relative to the thread register.
12+
13+
DTV_OFFSET offsetof(tcbhead_t, dtv)
14+
15+
TLSDESC_ARG offsetof(struct tlsdesc, arg)
16+
17+
TLSDESC_GEN_COUNT offsetof(struct tlsdesc_dynamic_arg, gen_count)
18+
TLSDESC_MODID offsetof(struct tlsdesc_dynamic_arg, tlsinfo.ti_module)
19+
TLSDESC_MODOFF offsetof(struct tlsdesc_dynamic_arg, tlsinfo.ti_offset)

0 commit comments

Comments
 (0)