[PATCHv3] powerpc: ABI change - add HWCAP/HWCAP2/platform info to TCB

Carlos O'Donell carlos@redhat.com
Fri Oct 9 20:19:00 GMT 2015


On 10/08/2015 11:24 AM, Steven Munroe wrote:
>>> (c) Avoid custom dl-support.c
>>>
>>> Are you sure you can't avoid this? Can we add AT_PLATFORM directly to the
>>> case statement used in _dl_aux_init?
>>
>> I suppose we could. I’ll see if that doesn’t break anything.
>>
> Carlos we keep going around on this. When we do what you suggest it
> stops working for static or dynamic linking.
> 
> We have to do something like this to get both static and dynamic linking
> to work (ie get the TCB fields initialized before we run the library
> init and C++ CTORs).

My suggestion is not to remove it, but to move it into generic code
to avoid a POWER-specific change. We should be handling AT_PLATFORM
copying in a generic way, that way it enables it for all arches, and
POWER doesn't have to maintain a local machine change.

I've spoken to Carlos a bit on IRC about this, and I think we have
consensus on how to fix this.

Cheers,
Carlos.



More information about the Libc-alpha mailing list