[PATCH 16/28] elf: Add glibc-hwcaps support for LD_LIBRARY_PATH

Szabolcs Nagy szabolcs.nagy@arm.com
Thu Oct 8 10:13:06 GMT 2020


The 10/01/2020 18:33, Florian Weimer via Libc-alpha wrote:
> This hacks non-power-set processing into _dl_important_hwcaps.
> Once the legacy hwcaps handling goes away, the subdirectory
> handling needs to be reworked, but it is premature to do this
> while both approaches are still supported.
...
> +/* Returns a bitmap of active subdirectories in _dl_hwcaps_subdirs.
> +   Bit 0 (the LSB) corresponds to the first substring in
> +   _dl_hwcaps_subdirs, bit 1 to the second substring, and so on.
> +   There is no direct correspondence between HWCAP bitmasks and this
> +   bitmask.  */
> +int32_t _dl_hwcaps_subdirs_active (void) attribute_hidden;

if this returns a bitmask i would use uint32_t

to avoid overflowing shifts and have 32bits available.


More information about the Libc-alpha mailing list