Bug 20547

Summary: Don't use AT_HWCAP for shared library search path
Product: glibc Reporter: H.J. Lu <hjl.tools>
Component: dynamic-linkAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED DUPLICATE    
Severity: normal Flags: fweimer: security-
Priority: P2    
Version: 2.25   
Target Milestone: 2.26   
Host: Target: x86
Build: Last reconfirmed:

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 ***