aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-03-11 19:59:46 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-03-11 19:59:46 +0100
commit9b14ad2db577e50e3b2da71867ddcc2d245456ee (patch)
tree4bf376272e8f2a22324a6b2df48ff87d55b0553a
parentcf1487b1da6e1f1ae56768028a65cc9b6917f69b (diff)
downloadman-pages-9b14ad2db577e50e3b2da71867ddcc2d245456ee.tar.gz
dl_iterate_phdr.3: Describe 'struct dl_phdr_info' fields added in glibc 2.4
See https://bugzilla.kernel.org/show_bug.cgi?id=103011 Reported-by: Paul Pluzhnikov <ppluzhnikov@google.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man3/dl_iterate_phdr.320
1 files changed, 20 insertions, 0 deletions
diff --git a/man3/dl_iterate_phdr.3 b/man3/dl_iterate_phdr.3
index 51cdb4327c..2835a25f2b 100644
--- a/man3/dl_iterate_phdr.3
+++ b/man3/dl_iterate_phdr.3
@@ -82,6 +82,26 @@ struct dl_phdr_info {
ELF program headers
for this object */
ElfW(Half) dlpi_phnum; /* # of items in \fIdlpi_phdr\fP */
+
+ /* The following fields were added in glibc 2.4, after the first
+ version of this structure was available. Check the \fIsize\fP
+ argument passed to the dl_iterate_phdr callback to determine
+ whether or not each later member is available. */
+
+ unsigned long long int dlpi_adds;
+ /* Incremented when a new object may
+ have been added */
+ unsigned long long int dlpi_subs;
+ /* Incremented when an object may
+ have been removed */
+ size_t dlpi_tls_modid;
+ /* If there is a PT_TLS segment, its module
+ ID as used in TLS relocations, else zero */
+ void *dlpi_tls_data;
+ /* The address of the calling thread's instance
+ of this module's PT_TLS segment, if it has
+ one and it has been allocated in the calling
+ thread, otherwise a null pointer */
};
.fi
.in