Blame SOURCES/glibc-rh615701.patch

b40826
2010-07-20  Roland McGrath  <roland@redhat.com>
b40826
b40826
	* elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
b40826
	dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
b40826
	ld.so.cache was broken.  With it, there is no way to disable dsocaps
b40826
	like LD_HWCAP_MASK can disable hwcaps.
b40826
b40826
Index: glibc-2.12-2-gc4ccff1/elf/dl-sysdep.c
b40826
===================================================================
b40826
--- glibc-2.12-2-gc4ccff1.orig/elf/dl-sysdep.c
b40826
+++ glibc-2.12-2-gc4ccff1/elf/dl-sysdep.c
b40826
@@ -425,6 +425,11 @@ _dl_important_hwcaps (const char *platfo
b40826
     {
b40826
       const ElfW(Word) mask = ((const ElfW(Word) *) dsocaps)[-1];
b40826
       GLRO(dl_hwcap) |= (uint64_t) mask << _DL_FIRST_EXTRA;
b40826
+      /* Note that we add the dsocaps to the set already chosen by the
b40826
+	 LD_HWCAP_MASK environment variable (or default HWCAP_IMPORTANT).
b40826
+	 So there is no way to request ignoring an OS-supplied dsocap
b40826
+	 string and bit like you can ignore an OS-supplied HWCAP bit.  */
b40826
+      GLRO(dl_hwcap_mask) |= (uint64_t) mask << _DL_FIRST_EXTRA;
b40826
       size_t len;
b40826
       for (const char *p = dsocaps; p < dsocaps + dsocapslen; p += len + 1)
b40826
 	{