From: Samuel Thibault Date: Mon, 29 Jan 2018 23:52:48 +0000 (+0100) Subject: hurd: Add tlsdesc.sym X-Git-Tag: upstream/2.30~1695 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef4cf463e59b763f289b80084e70911962da6d6c;p=platform%2Fupstream%2Fglibc.git hurd: Add tlsdesc.sym * sysdeps/mach/hurd/i386/tlsdesc.sym: New file. --- diff --git a/ChangeLog b/ChangeLog index a491034..80ad4c6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -29,6 +29,7 @@ * bits/fcntl.h: Fix comment for FREAD and FWRITE. * sysdeps/mach/hurd/bits/fcntl.h: Likewise. * sysdeps/mach/hurd/hp-timing.h: New file. + * sysdeps/mach/hurd/i386/tlsdesc.sym: New file. 2018-01-29 Darius Rad diff --git a/sysdeps/mach/hurd/i386/tlsdesc.sym b/sysdeps/mach/hurd/i386/tlsdesc.sym new file mode 100644 index 0000000..a358f7e --- /dev/null +++ b/sysdeps/mach/hurd/i386/tlsdesc.sym @@ -0,0 +1,19 @@ +#include +#include +#include +#include +#include + +-- + +-- We have to override sysdeps/i386/tlsdesc.sym to adapt to our libpthread. + +-- Abuse tls.h macros to derive offsets relative to the thread register. + +DTV_OFFSET offsetof(tcbhead_t, dtv) + +TLSDESC_ARG offsetof(struct tlsdesc, arg) + +TLSDESC_GEN_COUNT offsetof(struct tlsdesc_dynamic_arg, gen_count) +TLSDESC_MODID offsetof(struct tlsdesc_dynamic_arg, tlsinfo.ti_module) +TLSDESC_MODOFF offsetof(struct tlsdesc_dynamic_arg, tlsinfo.ti_offset)