From 54e4b8f21590d57ec9a2f2ad81a17c57e3b3984f Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 21 Aug 2017 05:32:21 -0700 Subject: 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_multiple_libcs): Removed. * elf/dl-sysdep.c: Include instead of . * include/libc-internal.h (__libc_multiple_libcs): New. * misc/sbrk.c: Include . (__libc_multiple_libcs): Removed. --- elf/dl-open.c | 3 +-- elf/dl-sysdep.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'elf') diff --git a/elf/dl-open.c b/elf/dl-open.c index 2d8948aab1..c539f10cf3 100644 --- a/elf/dl-open.c +++ b/elf/dl-open.c @@ -33,12 +33,11 @@ #include #include #include +#include #include -extern int __libc_multiple_libcs; /* Defined in init-first.c. */ - /* We must be careful not to leave us in an inconsistent state. Thus we catch any error and re-raise it after cleaning up. */ diff --git a/elf/dl-sysdep.c b/elf/dl-sysdep.c index 4053ff3c07..c4ff8b2937 100644 --- a/elf/dl-sysdep.c +++ b/elf/dl-sysdep.c @@ -41,7 +41,7 @@ #include #include #include -#include +#include #include #include -- cgit 1.4.1