From 0676c3a34c7bf12b33f8f5efb92476f4ffc7f20e Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 11 Sep 2018 15:58:46 -0400 Subject: use wrapper headers to hide most namespaced/internally-public symbols not all prefixed symbols can be made hidden. some are part of ABI-compat (e.g. __nl_langinfo_l) and others are ABI as a consequence of the way copy relocations for weak aliases work in ELF shared libraries. most, however, can be made hidden. with this commit, there should be no remaining unintentionally visible symbols exported from libc.so. --- src/include/sys/sysinfo.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/include/sys/sysinfo.h') diff --git a/src/include/sys/sysinfo.h b/src/include/sys/sysinfo.h index c3d60bfd..10be8a48 100644 --- a/src/include/sys/sysinfo.h +++ b/src/include/sys/sysinfo.h @@ -2,7 +2,8 @@ #define SYS_SYSINFO_H #include "../../../include/sys/sysinfo.h" +#include -int __lsysinfo(struct sysinfo *); +hidden int __lsysinfo(struct sysinfo *); #endif -- cgit v1.2.1