diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-10-08 10:57:10 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-10-08 13:38:23 +0200 |
commit | 9590a71adcf134c77f2d0f5711b0d6ab1b4193e6 (patch) | |
tree | 3090de58f9efc3f0e9a3c7c27d1bcd7caa26b8e7 /elf/dl-main.h | |
parent | 2bf9e641fd50ec34b04b70829679abf64fc0ed78 (diff) | |
download | glibc-9590a71adcf134c77f2d0f5711b0d6ab1b4193e6.zip glibc-9590a71adcf134c77f2d0f5711b0d6ab1b4193e6.tar.gz glibc-9590a71adcf134c77f2d0f5711b0d6ab1b4193e6.tar.bz2 |
elf: Move ld.so error/help output to _dl_usage
Also add a comment to elf/Makefile, explaining why we cannot use
config.status for autoconf template processing.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'elf/dl-main.h')
-rw-r--r-- | elf/dl-main.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/elf/dl-main.h b/elf/dl-main.h index bcc9bcf..b01f433 100644 --- a/elf/dl-main.h +++ b/elf/dl-main.h @@ -19,7 +19,9 @@ #ifndef _DL_MAIN #define _DL_MAIN +#include <ldsodefs.h> #include <limits.h> +#include <stdlib.h> /* Length limits for names and paths, to protect the dynamic linker, particularly when __libc_enable_secure is active. */ @@ -95,4 +97,7 @@ call_init_paths (const struct dl_main_state *state) _dl_init_paths (state->library_path); } +/* Print ld.so usage information and exit. */ +_Noreturn void _dl_usage (void) attribute_hidden; + #endif /* _DL_MAIN */ |