This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED PATCH] Fix conditional on using DSOCAPS to match condition on defining it.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: libc-alpha at sourceware dot org
- Date: Mon, 20 Aug 2012 09:53:27 -0700 (PDT)
- Subject: [COMMITTED PATCH] Fix conditional on using DSOCAPS to match condition on defining it.
2012-08-20 Roland McGrath <roland@hack.frob.com>
* elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
DSOCAPS to match condition on defining it.
diff --git a/elf/dl-sysdep.c b/elf/dl-sysdep.c
index e2a9d93..7d22839 100644
--- a/elf/dl-sysdep.c
+++ b/elf/dl-sysdep.c
@@ -420,7 +420,7 @@ _dl_important_hwcaps (const char *platform, size_t platform_len, size_t *sz,
/* Create temporary data structure to generate result table. */
temp = (struct r_strlenpair *) alloca (cnt * sizeof (*temp));
m = 0;
-#if defined NEED_DL_SYSINFO || defined NEED_DL_SYSINFO_DSO
+#if (defined NEED_DL_SYSINFO || defined NEED_DL_SYSINFO_DSO) && defined SHARED
if (dsocaps != NULL)
{
const ElfW(Word) mask = ((const ElfW(Word) *) dsocaps)[-1];