From: Ulrich Drepper Date: Tue, 23 Nov 1999 17:06:12 +0000 (+0000) Subject: Fix loading of SPARC v8plus libraries from statically linked programs. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9a6ad3b7c67fd01f58ac399223796e6cb1d982e4;p=thirdparty%2Fglibc.git Fix loading of SPARC v8plus libraries from statically linked programs. --- diff --git a/sysdeps/sparc/sparc32/dl-machine.h b/sysdeps/sparc/sparc32/dl-machine.h index 4985afda322..0e6ed1c4bc2 100644 --- a/sysdeps/sparc/sparc32/dl-machine.h +++ b/sysdeps/sparc/sparc32/dl-machine.h @@ -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;