mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Consolidate declarations of _dl_phdr, _dl_phnum.
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
2013-03-28 Roland McGrath <roland@hack.frob.com>
|
2013-03-28 Roland McGrath <roland@hack.frob.com>
|
||||||
|
|
||||||
|
* sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
|
||||||
|
Declare them here.
|
||||||
|
* elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
|
||||||
|
* csu/libc-tls.c: Nor here.
|
||||||
|
* sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
|
||||||
|
|
||||||
* sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
|
* sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
|
||||||
(__libc_message): Never call vsyslog.
|
(__libc_message): Never call vsyslog.
|
||||||
|
|
||||||
|
@@ -28,10 +28,6 @@
|
|||||||
#error makefile bug, this file is for static only
|
#error makefile bug, this file is for static only
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern ElfW(Phdr) *_dl_phdr;
|
|
||||||
extern size_t _dl_phnum;
|
|
||||||
|
|
||||||
|
|
||||||
dtv_t _dl_static_dtv[2 + TLS_SLOTINFO_SURPLUS];
|
dtv_t _dl_static_dtv[2 + TLS_SLOTINFO_SURPLUS];
|
||||||
|
|
||||||
|
|
||||||
|
@@ -92,10 +92,6 @@ weak_alias (__dl_iterate_phdr, dl_iterate_phdr);
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
/* dl-support.c defines these and initializes them early on. */
|
|
||||||
extern ElfW(Phdr) *_dl_phdr;
|
|
||||||
extern size_t _dl_phnum;
|
|
||||||
|
|
||||||
int
|
int
|
||||||
dl_iterate_phdr (int (*callback) (struct dl_phdr_info *info,
|
dl_iterate_phdr (int (*callback) (struct dl_phdr_info *info,
|
||||||
size_t size, void *data), void *data)
|
size_t size, void *data), void *data)
|
||||||
|
@@ -601,6 +601,12 @@ extern const struct rtld_global_ro _rtld_global_ro
|
|||||||
#endif
|
#endif
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
|
|
||||||
|
#ifndef SHARED
|
||||||
|
/* dl-support.c defines these and initializes them early on. */
|
||||||
|
extern ElfW(Phdr) *_dl_phdr;
|
||||||
|
extern size_t _dl_phnum;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef IS_IN_rtld
|
#ifdef IS_IN_rtld
|
||||||
/* This is the initial value of GL(dl_error_catch_tsd).
|
/* This is the initial value of GL(dl_error_catch_tsd).
|
||||||
A non-TLS libpthread will change it. */
|
A non-TLS libpthread will change it. */
|
||||||
|
@@ -106,10 +106,6 @@ init1 (int argc, char *arg0, ...)
|
|||||||
char **argv = &arg0;
|
char **argv = &arg0;
|
||||||
char **envp = &argv[argc + 1];
|
char **envp = &argv[argc + 1];
|
||||||
struct hurd_startup_data *d;
|
struct hurd_startup_data *d;
|
||||||
#ifndef SHARED
|
|
||||||
extern ElfW(Phdr) *_dl_phdr;
|
|
||||||
extern size_t _dl_phnum;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
while (*envp)
|
while (*envp)
|
||||||
++envp;
|
++envp;
|
||||||
|
Reference in New Issue
Block a user