]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix loading of SPARC v8plus libraries from statically linked programs.
authorUlrich Drepper <drepper@redhat.com>
Tue, 23 Nov 1999 17:06:12 +0000 (17:06 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 23 Nov 1999 17:06:12 +0000 (17:06 +0000)
sysdeps/sparc/sparc32/dl-machine.h

index 4985afda322910995b6dfdcadc8b19843d52bea4..0e6ed1c4bc2e1c6f01b2d897bcf12be3e3e2e886 100644 (file)
@@ -57,7 +57,9 @@ elf_machine_matches_host (Elf32_Half e_machine)
       weak_extern (_dl_hwcap_mask);
 
       hwcap = WEAKADDR(_dl_hwcap);
-      return hwcap && (*hwcap & _dl_hwcap_mask & HWCAP_SPARC_V9);
+      /* XXX The following is wrong!  Dave Miller rejected to implement it
+        correctly.  If this causes problems shoot *him*!  */
+      return hwcap == NULL || (*hwcap & _dl_hwcap_mask & HWCAP_SPARC_V9);
     }
   else
     return 0;