1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

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>
This commit is contained in:
Florian Weimer
2020-10-08 15:33:00 +02:00
parent addff78f1f
commit 542923d949
3 changed files with 20 additions and 0 deletions

View File

@ -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;