From 18bf0829a7545b14de3fe241a65298c5f36e8bbc Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 6 Sep 2018 16:17:56 -0400 Subject: improve machinery for ldso to report libc version eliminate gratuitous glue function for reporting the version, which was probably leftover from the old dynamic linker design which lacked a clear barrier for when/how it could access global data. put the declaration for the data object that replaces it in libc.h where it can be type checked. --- src/internal/libc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/internal/libc.h') diff --git a/src/internal/libc.h b/src/internal/libc.h index 7307a738..f536eaf6 100644 --- a/src/internal/libc.h +++ b/src/internal/libc.h @@ -43,6 +43,8 @@ extern hidden size_t __hwcap; extern hidden size_t __sysinfo; extern char *__progname, *__progname_full; +extern hidden const char __libc_version[]; + /* Designed to avoid any overhead in non-threaded processes */ hidden void __lock(volatile int *); hidden void __unlock(volatile int *); -- cgit v1.2.1