[PATCH] elf: Avoid using memalign for TLS allocations [BZ #17730]

Florian Weimer fweimer@redhat.com
Wed Aug 3 14:52:00 GMT 2016


On 07/11/2016 04:54 AM, Carlos O'Donell wrote:
> On 06/21/2016 07:33 AM, Florian Weimer wrote:
>> > Instead of a flag which indicates the pointer can be freed, dtv_t
>> > now includes the pointer which should be freed.  Due to padding,
>> > the size of dtv_t does not increase.
>> >
>> > To avoid using memalign, the new allocate_dtv_entry function
>> > allocates a sufficiently large buffer so that a sub-buffer
>> > can be found in it which starts with an aligned pointer.  Both
>> > the aligned and original pointers are kept, the latter for calling
>> > free later.
> This looks good to me.

Committed as well.

Thanks,
Florian



More information about the Libc-alpha mailing list