[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#169758: libc6: muldiv should be important hwcap on sparc32 (and hwcap needs doc)



Package: libc6
Version: 2.2.5-14.3
Severity: normal
Tags: patch

Dynamic loading on sparc32 doesn't currently look for SPARC
v8-specific libraries, which are particularly important for openssl
(speeding up some of the cryptography by factors of several).  For
that reason, I think it rates as bug rather than wishlist, and sparc32
users like me would be greatful for an early Debian fix.

This happens because the `muldiv' hwcap isn't considered `important'.
It looks as though the following patch is what's required.  I haven't
tried to rebuild with it, but if I set LD_HWCAP_MASK=56 in the
environment, libraries are found in /usr/lib/muldiv.
[(HWCAP_SPARC_V9|HWCAP_SPARC_ULTRA3|HWCAP_SPARC_MULDIV) = 56.]

As far as I can tell, there's a complete lack of doc on the hwcap and
multilib features.  I think they should be documented in ldconfig(8)
and ld.so(8).  I'm not sure I understand sufficiently to provide
patches.

2002-11-19  Dave Love  <fx@gnu.org>

	* sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
	(HWCAP_IMPORTANT): Add HWCAP_SPARC_MULDIV.

*** dl-procinfo.h	2002/11/19 10:50:41	1.1
--- dl-procinfo.h	2002/11/19 10:51:12
***************
*** 68,74 ****
    return -1;
  };
  
! #define HWCAP_IMPORTANT (HWCAP_SPARC_V9|HWCAP_SPARC_ULTRA3)
  
  /* There are no different platforms defined.  */
  #define _dl_platform_string(idx) ""
--- 68,74 ----
    return -1;
  };
  
! #define HWCAP_IMPORTANT (HWCAP_SPARC_V9|HWCAP_SPARC_ULTRA3|HWCAP_SPARC_MULDIV)
  
  /* There are no different platforms defined.  */
  #define _dl_platform_string(idx) ""


-- System Information
Debian Release: 3.0
Architecture: sparc
Kernel: Linux albion.dl.ac.uk 2.4.19 #1 Sat Oct 5 15:26:43 EDT 2002 sparc64
Locale: LANG=C, LC_CTYPE=en_GB

Versions of packages libc6 depends on:
ii  libdb1-compat                 2.1.3-4    The Berkeley database routines [gl



Reply to: