about summary refs log tree commit diff
path: root/include/libc-internal.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-08-21 05:32:21 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-08-21 05:32:39 -0700
commit54e4b8f21590d57ec9a2f2ad81a17c57e3b3984f (patch)
tree59e75443b45d8ad88b3a47fa52a23e0e22050899 /include/libc-internal.h
parent1dbbb1ec7af9026bbdc6dd265525de0c3958406c (diff)
downloadglibc-54e4b8f21590d57ec9a2f2ad81a17c57e3b3984f.tar.gz
glibc-54e4b8f21590d57ec9a2f2ad81a17c57e3b3984f.tar.xz
glibc-54e4b8f21590d57ec9a2f2ad81a17c57e3b3984f.zip
Mark __libc_multiple_libcs with attribute_hidden [BZ #18822]
Since __libc_multiple_libcs is defined as hidden symbol in init-first.c,
it should be always marked with attribute_hidden.

	[BZ #18822]
	* csu/libc-start.c (__libc_multiple_libcs): Removed.
	* elf/dl-open.c: Include <libc-internal.h>.
	(__libc_multiple_libcs): Removed.
	* elf/dl-sysdep.c: Include <libc-internal.h> instead of
	<hp-timing.h>.
	* include/libc-internal.h (__libc_multiple_libcs): New.
	* misc/sbrk.c: Include <libc-internal.h>.
	(__libc_multiple_libcs): Removed.
Diffstat (limited to 'include/libc-internal.h')
-rw-r--r--include/libc-internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libc-internal.h b/include/libc-internal.h
index cd2f2622ed..c501c95eb5 100644
--- a/include/libc-internal.h
+++ b/include/libc-internal.h
@@ -53,4 +53,6 @@ extern void __init_misc (int, char **, char **);
 extern __typeof (__profile_frequency) __profile_frequency attribute_hidden;
 # endif
 
+extern int __libc_multiple_libcs attribute_hidden;
+
 #endif /* _LIBC_INTERNAL  */