summaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-10-05 10:22:14 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-10-05 10:22:14 -0700
commitbb859b06ddb311005266c3576bc46b1fe751d8d3 (patch)
treefa477e59d65d04f58e7c4aaf1f019ea1fb39a230 /elf
parent9cee55856438b714fa1efa45d8b7c1857467f4ca (diff)
downloadglibc-bb859b06ddb311005266c3576bc46b1fe751d8d3.tar.gz
Set GL(dl_nns) to 1 for vDSO in libc.a
Diffstat (limited to 'elf')
-rw-r--r--elf/setup-vdso.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/elf/setup-vdso.h b/elf/setup-vdso.h
index 1b969a0718..f8f348a5f2 100644
--- a/elf/setup-vdso.h
+++ b/elf/setup-vdso.h
@@ -106,6 +106,8 @@ setup_vdso (struct link_map *main_map __attribute__ ((unused)),
GL(dl_rtld_map).l_next = l;
l->l_prev = &GL(dl_rtld_map);
*first_preload = &l->l_next;
+# else
+ GL(dl_nns) = 1;
# endif
/* We have a prelinked DSO preloaded by the system. */