about summary refs log tree commit diff
path: root/elf/dl-main.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-10-08 15:33:00 +0200
committerFlorian Weimer <fweimer@redhat.com>2020-10-08 15:33:00 +0200
commit542923d949e8b2480e48bd85fea13cf5d00d30b7 (patch)
tree1b53929678625fd6e434b414b3680b65a845740c /elf/dl-main.h
parentaddff78f1f6729408a88d7452b16b8f5ee7e6878 (diff)
downloadglibc-542923d949e8b2480e48bd85fea13cf5d00d30b7.tar.gz
glibc-542923d949e8b2480e48bd85fea13cf5d00d30b7.tar.xz
glibc-542923d949e8b2480e48bd85fea13cf5d00d30b7.zip
elf: Implement ld.so --version
This prints out version information for the dynamic loader and
exits immediately, without further command line processing
(which seems to match what some GNU tools do).

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'elf/dl-main.h')
-rw-r--r--elf/dl-main.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/elf/dl-main.h b/elf/dl-main.h
index ac7249a580..b51256d3b4 100644
--- a/elf/dl-main.h
+++ b/elf/dl-main.h
@@ -105,6 +105,9 @@ call_init_paths (const struct dl_main_state *state)
 _Noreturn void _dl_usage (const char *argv0, const char *wrong_option)
   attribute_hidden;
 
+/* Print ld.so version information and exit.  */
+_Noreturn void _dl_version (void) attribute_hidden;
+
 /* Print ld.so --help output and exit.  */
 _Noreturn void _dl_help (const char *argv0, struct dl_main_state *state)
   attribute_hidden;