This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug dynamic-link/20547] New: Don't use AT_HWCAP for shared library search path


https://sourceware.org/bugzilla/show_bug.cgi?id=20547

            Bug ID: 20547
           Summary: Don't use AT_HWCAP for shared library search path
           Product: glibc
           Version: 2.25
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dynamic-link
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---
            Target: x86

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]