* [PATCH] Mark internal SSE2 functions with attribute_hidden [BZ #18822]
@ 2017-08-19 23:42 H.J. Lu
0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2017-08-19 23:42 UTC (permalink / raw)
To: GNU C Library
Mark internal SSE2 functions with attribute_hidden to allow direct
access within libc.so and libc.a without using GOT nor PLT.
I will check it in shortly.
H.J.
---
[BZ #18822]
* sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
attribute_hidden.
(__strspn_sse2): Likewise.
---
sysdeps/x86_64/multiarch/strcspn-c.c | 2 +-
sysdeps/x86_64/multiarch/strspn-c.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sysdeps/x86_64/multiarch/strcspn-c.c b/sysdeps/x86_64/multiarch/strcspn-c.c
index 67991b5ca7..fc8a2feb3b 100644
--- a/sysdeps/x86_64/multiarch/strcspn-c.c
+++ b/sysdeps/x86_64/multiarch/strcspn-c.c
@@ -70,7 +70,7 @@ char *
#else
size_t
#endif
-STRCSPN_SSE2 (const char *, const char *);
+STRCSPN_SSE2 (const char *, const char *) attribute_hidden;
#ifdef USE_AS_STRPBRK
diff --git a/sysdeps/x86_64/multiarch/strspn-c.c b/sysdeps/x86_64/multiarch/strspn-c.c
index 1704606b80..e6bf2042cd 100644
--- a/sysdeps/x86_64/multiarch/strspn-c.c
+++ b/sysdeps/x86_64/multiarch/strspn-c.c
@@ -52,7 +52,7 @@
We exit from the loop for case 1. */
-extern size_t __strspn_sse2 (const char *, const char *);
+extern size_t __strspn_sse2 (const char *, const char *) attribute_hidden;
size_t
--
2.13.5
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-08-19 23:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-19 23:42 [PATCH] Mark internal SSE2 functions with attribute_hidden [BZ #18822] H.J. Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).