[PATCH] x86: Rename __glibc_reserved1 to feature_1 in tcbhead_t [BZ #22563]

H.J. Lu hjl.tools@gmail.com
Thu May 17 16:25:00 GMT 2018


On Wed, May 16, 2018 at 7:28 AM, Florian Weimer <fweimer@redhat.com> wrote:
> On 05/08/2018 10:39 PM, H.J. Lu wrote:
>>
>> diff --git a/sysdeps/i386/nptl/tls.h b/sysdeps/i386/nptl/tls.h
>> index 8ca0924692..c3a0edd253 100644
>> --- a/sysdeps/i386/nptl/tls.h
>> +++ b/sysdeps/i386/nptl/tls.h
>> @@ -50,6 +50,10 @@ typedef struct
>>     void *__private_tm[4];
>>     /* GCC split stack support.  */
>>     void *__private_ss;
>> +  /* Bit 0: IBT.
>> +     Bit 1: SHSTK.
>> +   */
>> +  unsigned int feature_1;
>>   } tcbhead_t;
>
>
> It might be nicer to reuse __glibc_reserved1 for that (I think
> __ASSUME_PRIVATE_FUTEX is always defined these days), in case some extern
> tools hard-code the tcbhead_t layout.
>

Now __ASSUME_PRIVATE_FUTEX has been removed.   Here is the patch
to rename __glibc_reserved1 to feature_1 in tcbhead_t.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-x86-Rename-__glibc_reserved1-to-feature_1-in-tcbhead.patch
Type: text/x-patch
Size: 5083 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20180517/0c7a8b6c/attachment.bin>


More information about the Libc-alpha mailing list