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 libc/19766] New: All machines should pass dl_hwcap to ifunc resolvers.


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

            Bug ID: 19766
           Summary: All machines should pass dl_hwcap to ifunc resolvers.
           Product: glibc
           Version: 2.24
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: carlos at redhat dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

Presently AArch64, ARM, s390x, s390, ppc32, ppc64, sparc32, and sparc64 all
support passing dl_hwcap to the resolver function. This allows the resolver to
do something interesting based on the hardware capabilities.

On i386, and x86_64 we do not pass dl_hwcap to the resolver functions and
therefore have no save way to access this information.

We should immediately bring i386 and x86_64 up to parity with the other
architectures and once this is done we should follow up by adding a symbol
dependency to all ifunc attribute functions compiled by gcc, such that new
binaries that need this feature are assured they run under an environment that
provides the dl_hwcap and not just garbage in the incoming argument register.

Without this feature i386 and x86_64 ifunc's don't have much use.

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