about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2024-08-09 16:17:14 +0200
committerFlorian Weimer <fweimer@redhat.com>2024-08-19 16:12:08 +0200
commit586e4cd8c67df95ebb0bfecea3d007bff618d6d9 (patch)
tree323115bbcb8d7ec4806f6efaed31e007121ab55e
parentc0af0c2ba016030c778bc22c55f5f9498f96b8b9 (diff)
downloadglibc-586e4cd8c67df95ebb0bfecea3d007bff618d6d9.tar.gz
glibc-586e4cd8c67df95ebb0bfecea3d007bff618d6d9.tar.xz
glibc-586e4cd8c67df95ebb0bfecea3d007bff618d6d9.zip
Define __libc_initial for the static libc
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
(cherry picked from commit eb0e50e9a1cf80a2ba6f33f990a08ef37a3267fb)
-rw-r--r--include/libc-internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libc-internal.h b/include/libc-internal.h
index 87ac591835..1ef43ffe67 100644
--- a/include/libc-internal.h
+++ b/include/libc-internal.h
@@ -53,6 +53,9 @@ extern __typeof (__profile_frequency) __profile_frequency attribute_hidden;
    is not for an audit module, not loaded via dlmopen, and not loaded
    via static dlopen either).  */
 extern _Bool __libc_initial attribute_hidden;
+#else
+/* The static libc is always the initial namespace.  */
+# define __libc_initial ((_Bool) 1)
 #endif
 
 #endif /* _LIBC_INTERNAL  */