Bug 20547 - Don't use AT_HWCAP for shared library search path
Summary: Don't use AT_HWCAP for shared library search path
Status: RESOLVED DUPLICATE of bug 21391
Alias: None
Product: glibc
Classification: Unclassified
Component: dynamic-link (show other bugs)
Version: 2.25
: P2 normal
Target Milestone: 2.26
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-02 17:09 UTC by H.J. Lu
Modified: 2017-05-24 17:57 UTC (History)
0 users

See Also:
Host:
Target: x86
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.J. Lu 2016-09-02 17:09:37 UTC
AT_HWCAP is treated differently on i386:

AT_HWCAP:    fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe

vs x86-64:

AT_HWCAP:        bfebfbff

as shown by LD_SHOW_AUXV. On i386, only sse2 is used for shared library search
path.  On x86-64, nothing additional directory is searched for shared library.
We can use _dl_x86_cpu_features to replace AT_HWCAP and enable additional
directories for loading shared libraries.
Comment 1 H.J. Lu 2017-05-24 17:57:33 UTC
Dup.

*** This bug has been marked as a duplicate of bug 21391 ***