mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Update.
2001-01-05 H.J. Lu <hjl@gnu.org> * elf/dl-support.c (non_dynamic_init): Move the auxiliary vector checking to ... (_dl_aux_init): Here. New function. Defined only if HAVE_AUX_VECTOR is defined. * sysdeps/generic/libc-start.c (__libc_start_main): Call _dl_aux_init for static binaries if HAVE_AUX_VECTOR is defined. * sysdeps/powerpc/elf/libc-start.c (__libc_start_main): Call _dl_aux_init. * sysdeps/unix/sysv/linux/ldsodefs.h (DL_FIND_AUXV): Removed. (HAVE_AUX_VECTOR): Defined. (_dl_aux_init): Declared.
This commit is contained in:
@ -24,15 +24,10 @@
|
||||
|
||||
/* Now define our stuff. */
|
||||
|
||||
/* Locating the auxiliary vector. */
|
||||
#ifndef DL_FIND_AUXV
|
||||
# define DL_FIND_AUXV(auxp, envp) \
|
||||
do { \
|
||||
void **_tmp; \
|
||||
for (_tmp = (void **) (envp); *_tmp; ++_tmp) \
|
||||
continue; \
|
||||
(auxp) = (void *) ++_tmp; \
|
||||
} while (0)
|
||||
#endif
|
||||
/* We have the auxiliary vector. */
|
||||
#define HAVE_AUX_VECTOR
|
||||
|
||||
/* Used by static binaries to check the auxiliary vector. */
|
||||
extern void _dl_aux_init (ElfW(auxv_t) *av) internal_function;
|
||||
|
||||
#endif /* ldsodefs.h */
|
||||
|
Reference in New Issue
Block a user