]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Hide internal __gettextparse function [BZ #18822]
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 2 Oct 2017 00:30:49 +0000 (17:30 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 2 Oct 2017 00:31:05 +0000 (17:31 -0700)
Hide internal __gettextparse function to allow direct access within
libc.so and libc.a without using GOT nor PLT.

[BZ #18822]
* include/plural-exp.h: New file.
* intl/plural-exp.c: Include <plural-exp.h> instead of
"plural-exp.h".

ChangeLog
include/plural-exp.h [new file with mode: 0644]
intl/plural-exp.c

index e5edb868f3caa6782855b5bdd3202f7f4292e2a0..dd228bc2f2cbf7f53868f66371490c185406af68 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       [BZ #18822]
+       * include/plural-exp.h: New file.
+       * intl/plural-exp.c: Include <plural-exp.h> instead of
+       "plural-exp.h".
+
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #18822]
diff --git a/include/plural-exp.h b/include/plural-exp.h
new file mode 100644 (file)
index 0000000..3b026f8
--- /dev/null
@@ -0,0 +1,8 @@
+#ifndef _PLURAL_EXP_H
+#include <intl/plural-exp.h>
+
+#ifndef _ISOMAC
+extern __typeof (__gettextparse) __gettextparse attribute_hidden;
+#endif /* !_ISOMAC */
+
+#endif
index 8c15032631a563ef9efaea96a09cc0de7c2fe048..f5249d5373f57f648da25fca3685432ab6e3e6d8 100644 (file)
@@ -23,7 +23,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include "plural-exp.h"
+#include <plural-exp.h>
 
 #if (defined __GNUC__ && !(defined __APPLE_CC_ && __APPLE_CC__ > 1) && \
      !defined __cplusplus)                                            \