This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] x86: Don't include cacheinfo.c in ld.so
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Tue, 23 May 2017 20:13:03 -0700
- Subject: [PATCH] x86: Don't include cacheinfo.c in ld.so
- Authentication-results: sourceware.org; auth=none
Since cacheinfo.c isn't used by ld.so, there is no need to include it
in ld.so.
Any comments.
H.J.
---
* sysdeps/x86/cacheinfo.c: Skip if not in libc.
---
sysdeps/x86/cacheinfo.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/sysdeps/x86/cacheinfo.c b/sysdeps/x86/cacheinfo.c
index 43c0b63..12ffeef 100644
--- a/sysdeps/x86/cacheinfo.c
+++ b/sysdeps/x86/cacheinfo.c
@@ -16,6 +16,8 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
+#if IS_IN (libc)
+
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
@@ -769,3 +770,5 @@ intel_bug_no_cache_info:
store becomes faster. */
__x86_shared_non_temporal_threshold = __x86_shared_cache_size * 6;
}
+
+#endif
--
2.9.4