Question regarding platform-bits in ld.so.cache

Peter Bergner bergner@linux.ibm.com
Fri May 17 17:25:50 GMT 2024


On 5/17/24 8:06 AM, Stefan Liebler wrote:
> NOTE: powerpc is using _dl_string_platform() also here:
> sysdeps/powerpc/hwcapinfo.c:37:  __tcb.at_platform = _dl_string_platform
> (GLRO (dl_platform));
> => Within exported symbol __parse_hwcap_and_convert_at_platform.
> sysdeps/powerpc/test-get_hwcap.c:123:  at_platform = _dl_string_platform
> (at_platform_string);

On powerpc, we replicate the AT_PLATFORM value (actually a unique integer
that maps to a specific AT_PLATFORM string) and our AT_HWCAP{,2,3,4} masks
in our TCB for access from our __builtin_cpu_is() and __builtin_cpu_supports()
built-in functions.


Peter



More information about the Libc-alpha mailing list