diff options
-rw-r--r-- | ChangeLog | 12 | ||||
-rw-r--r-- | csu/libc-start.c | 2 | ||||
-rw-r--r-- | elf/dl-open.c | 3 | ||||
-rw-r--r-- | elf/dl-sysdep.c | 2 | ||||
-rw-r--r-- | include/libc-internal.h | 2 | ||||
-rw-r--r-- | misc/sbrk.c | 4 |
6 files changed, 17 insertions, 8 deletions
@@ -1,6 +1,18 @@ 2017-08-21 H.J. Lu <hongjiu.lu@intel.com> [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. + +2017-08-21 H.J. Lu <hongjiu.lu@intel.com> + + [BZ #18822] * grp/initgroups.c (__nss_group_database): Removed. (__nss_initgroups_database): Likewise. * nscd/gai.c (__nss_hosts_database): Likewise. diff --git a/csu/libc-start.c b/csu/libc-start.c index 6720617..24c63be 100644 --- a/csu/libc-start.c +++ b/csu/libc-start.c @@ -27,8 +27,6 @@ extern void __libc_init_first (int argc, char **argv, char **envp); -extern int __libc_multiple_libcs; - #include <tls.h> #ifndef SHARED # include <dl-osinfo.h> diff --git a/elf/dl-open.c b/elf/dl-open.c index 2d8948a..c539f10 100644 --- a/elf/dl-open.c +++ b/elf/dl-open.c @@ -33,12 +33,11 @@ #include <tls.h> #include <stap-probe.h> #include <atomic.h> +#include <libc-internal.h> #include <dl-dst.h> -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 4053ff3..c4ff8b2 100644 --- a/elf/dl-sysdep.c +++ b/elf/dl-sysdep.c @@ -41,7 +41,7 @@ #include <dl-machine.h> #include <dl-procinfo.h> #include <dl-osinfo.h> -#include <hp-timing.h> +#include <libc-internal.h> #include <tls.h> #include <dl-tunables.h> diff --git a/include/libc-internal.h b/include/libc-internal.h index cd2f262..c501c95 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 */ diff --git a/misc/sbrk.c b/misc/sbrk.c index 965c0ef..158399d 100644 --- a/misc/sbrk.c +++ b/misc/sbrk.c @@ -18,14 +18,12 @@ #include <errno.h> #include <stdint.h> #include <unistd.h> +#include <libc-internal.h> /* Defined in brk.c. */ extern void *__curbrk; extern int __brk (void *addr); -/* Defined in init-first.c. */ -extern int __libc_multiple_libcs attribute_hidden; - /* Extend the process's data space by INCREMENT. If INCREMENT is negative, shrink data space by - INCREMENT. Return start of new space allocated, or -1 for errors. */ |