elf: Implement ld.so --help
authorFlorian Weimer <fweimer@redhat.com>
Thu, 8 Oct 2020 08:57:10 +0000 (10:57 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 8 Oct 2020 13:00:39 +0000 (15:00 +0200)
commite0f1a58f3d1f4f55591b524e9dcff23cc98a509e
treecd744b7405d8793811595fc9d7020ef354e1e2d6
parent27316f4a23efdc90bdfe4569a6c4b7e27941606e
elf: Implement ld.so --help

--help processing is deferred to the point where the executable has
been loaded, so that it is possible to eventually include information
from the main executable in the help output.

As suggested in the GNU command-line interface guidelines, the help
message is printed to standard output, and the exit status is
successful.

Handle usage errors closer to the GNU command-line interface
guidelines.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
elf/dl-main.h
elf/dl-usage.c
elf/rtld.c