diff options
author | Michael Kerrisk <mtk.manpages@gmail.com> | 2016-03-11 20:28:11 +0100 |
---|---|---|
committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2016-03-11 20:28:11 +0100 |
commit | f1e1b550a9293ea58cfbc306e6bb264243e77d2e (patch) | |
tree | 3fe93f2237a4cee44da16d274bbdfcc6ba3d3c2c | |
parent | 9b14ad2db577e50e3b2da71867ddcc2d245456ee (diff) | |
download | man-pages-f1e1b550a9293ea58cfbc306e6bb264243e77d2e.tar.gz |
dl_iterate_phdr.3: Note that first object visited by 'callback' is the main program
See https://bugzilla.kernel.org/show_bug.cgi?id=94141
Reported-by: Simon Que <sque@chromium.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r-- | man3/dl_iterate_phdr.3 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/man3/dl_iterate_phdr.3 b/man3/dl_iterate_phdr.3 index 2835a25f2b..14386ec3c2 100644 --- a/man3/dl_iterate_phdr.3 +++ b/man3/dl_iterate_phdr.3 @@ -211,6 +211,13 @@ structure; in that event, the .I size argument provides a mechanism for the callback function to discover whether it is running on a system with added fields. + +The first object visited by +.IR callback +is the main program. +For the main program, the +.I dlpi_name +field will be an empty string. .SH EXAMPLE The following program displays a list of pathnames of the shared objects it has loaded. |