Bug 422683 - Adjusting AT_PLATFORM
Summary: Adjusting AT_PLATFORM
Status: REPORTED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL: https://sourceware.org/pipermail/libc...
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-09 16:59 UTC by Mark Wielaard
Modified: 2021-06-10 21:18 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Wielaard 2020-06-09 16:59:18 UTC
glibc might start selecting optimized functions/libraries based on the AT_PLATFORM architecture string identifier. We currently adjust the AT_HW_CAPS[2] based on the actual instructions we support (see setup_client_stack in coregrind/m_initimg/initimg-linux.c), but in the future we might also want to adjust AT_PLATFORM (e.g. change power10 -> power9 or z15 -> z13).

The current proposal is on the glibc mailinglist:
https://sourceware.org/pipermail/libc-alpha/2020-May/113757.html
Comment 1 Florian Weimer 2020-06-09 17:02:31 UTC
To clarify that the libc-alpha posting is not a proposal, it is a description of the status quo.

The proposal (buried in there) is to move towards AT_HWCAP-based selection exclusively, but that has not been implemented yet, and would not affect the legacy directory selection logic at first.