mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
(_dl_sysdep_start): Adjust for compilation with HAVE_AUX_SECURE defined.
This commit is contained in:
@ -80,6 +80,7 @@ _dl_sysdep_start (void **start_argptr,
|
|||||||
ElfW(Addr) user_entry;
|
ElfW(Addr) user_entry;
|
||||||
ElfW(auxv_t) *av;
|
ElfW(auxv_t) *av;
|
||||||
#ifdef HAVE_AUX_SECURE
|
#ifdef HAVE_AUX_SECURE
|
||||||
|
# define set_seen(tag) (tag) /* Evaluate for the side effects. */
|
||||||
# define set_seen_secure() ((void) 0)
|
# define set_seen_secure() ((void) 0)
|
||||||
#else
|
#else
|
||||||
uid_t uid = 0;
|
uid_t uid = 0;
|
||||||
@ -123,6 +124,7 @@ _dl_sysdep_start (void **start_argptr,
|
|||||||
_dl_base_addr = av->a_un.a_val;
|
_dl_base_addr = av->a_un.a_val;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef HAVE_AUX_SECURE
|
||||||
case AT_UID:
|
case AT_UID:
|
||||||
case AT_EUID:
|
case AT_EUID:
|
||||||
uid ^= av->a_un.a_val;
|
uid ^= av->a_un.a_val;
|
||||||
@ -131,8 +133,11 @@ _dl_sysdep_start (void **start_argptr,
|
|||||||
case AT_EGID:
|
case AT_EGID:
|
||||||
gid ^= av->a_un.a_val;
|
gid ^= av->a_un.a_val;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
case AT_SECURE:
|
case AT_SECURE:
|
||||||
|
#ifndef HAVE_AUX_SECURE
|
||||||
seen = -1;
|
seen = -1;
|
||||||
|
#endif
|
||||||
INTUSE(__libc_enable_secure) = av->a_un.a_val;
|
INTUSE(__libc_enable_secure) = av->a_un.a_val;
|
||||||
break;
|
break;
|
||||||
case AT_PLATFORM:
|
case AT_PLATFORM:
|
||||||
|
Reference in New Issue
Block a user