about summary refs log tree commit diff
path: root/sysdeps/generic/ldsodefs.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2013-03-28 15:33:57 -0700
committerRoland McGrath <roland@hack.frob.com>2013-03-28 15:33:57 -0700
commit3d3436ae68a907f656a07604eb7e10a50e1c8f85 (patch)
tree85f688e349dd601f3297813f4f6abf0f08631838 /sysdeps/generic/ldsodefs.h
parentaf15c191766fd413ef6fedc9d54b87962332ca71 (diff)
downloadglibc-3d3436ae68a907f656a07604eb7e10a50e1c8f85.tar.gz
glibc-3d3436ae68a907f656a07604eb7e10a50e1c8f85.tar.xz
glibc-3d3436ae68a907f656a07604eb7e10a50e1c8f85.zip
Consolidate declarations of _dl_phdr, _dl_phnum.
Diffstat (limited to 'sysdeps/generic/ldsodefs.h')
-rw-r--r--sysdeps/generic/ldsodefs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
index 9944555dd3..89db552542 100644
--- a/sysdeps/generic/ldsodefs.h
+++ b/sysdeps/generic/ldsodefs.h
@@ -601,6 +601,12 @@ extern const struct rtld_global_ro _rtld_global_ro
 #endif
 #undef EXTERN
 
+#ifndef SHARED
+/* dl-support.c defines these and initializes them early on.  */
+extern ElfW(Phdr) *_dl_phdr;
+extern size_t _dl_phnum;
+#endif
+
 #ifdef IS_IN_rtld
 /* This is the initial value of GL(dl_error_catch_tsd).
    A non-TLS libpthread will change it.  */