Skip to content

Commit

Permalink
* sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
Browse files Browse the repository at this point in the history
	removal of a_ptr element in ElfXX_auxv_t.
	* elf/dl-support.c (_dl_aux_init): Likewise.
  • Loading branch information
Ulrich Drepper committed May 11, 2005
1 parent eac3813 commit 39fb308
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

* elf/elf.h (Elf32_auxv_t): Make cross-compile safe.
(Elf64_auxv_t): Likewise.
* sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
removal of a_ptr element in ElfXX_auxv_t.
* elf/dl-support.c (_dl_aux_init): Likewise.

2005-05-09 Daniel Jacobowitz <dan@codesourcery.com>

Expand Down
4 changes: 2 additions & 2 deletions elf/dl-support.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ _dl_aux_init (ElfW(auxv_t) *av)
GLRO(dl_clktck) = av->a_un.a_val;
break;
case AT_PHDR:
GL(dl_phdr) = av->a_un.a_ptr;
GL(dl_phdr) = (void *) av->a_un.a_val;
break;
case AT_PHNUM:
GL(dl_phnum) = av->a_un.a_val;
Expand All @@ -188,7 +188,7 @@ _dl_aux_init (ElfW(auxv_t) *av)
#endif
#if defined NEED_DL_SYSINFO || defined NEED_DL_SYSINFO_DSO
case AT_SYSINFO_EHDR:
GL(dl_sysinfo_dso) = av->a_un.a_ptr;
GL(dl_sysinfo_dso) = (void *) av->a_un.a_val;
break;
#endif
case AT_UID:
Expand Down
8 changes: 4 additions & 4 deletions sysdeps/generic/dl-sysdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ _dl_sysdep_start (void **start_argptr,
switch (av->a_type)
{
case AT_PHDR:
phdr = av->a_un.a_ptr;
phdr = (void *) av->a_un.a_val;
break;
case AT_PHNUM:
phnum = av->a_un.a_val;
Expand Down Expand Up @@ -152,7 +152,7 @@ _dl_sysdep_start (void **start_argptr,
INTUSE(__libc_enable_secure) = av->a_un.a_val;
break;
case AT_PLATFORM:
GLRO(dl_platform) = av->a_un.a_ptr;
GLRO(dl_platform) = (void *) av->a_un.a_val;
break;
case AT_HWCAP:
GLRO(dl_hwcap) = (unsigned long int) av->a_un.a_val;
Expand All @@ -170,7 +170,7 @@ _dl_sysdep_start (void **start_argptr,
#endif
#if defined NEED_DL_SYSINFO || defined NEED_DL_SYSINFO_DSO
case AT_SYSINFO_EHDR:
GLRO(dl_sysinfo_dso) = av->a_un.a_ptr;
GLRO(dl_sysinfo_dso) = (void *) av->a_un.a_val;
break;
#endif
#ifdef DL_PLATFORM_AUXV
Expand Down Expand Up @@ -312,7 +312,7 @@ _dl_show_auxv (void)
if (idx < sizeof (auxvars) / sizeof (auxvars[0])
&& auxvars[idx].form != unknown)
{
const char *val = av->a_un.a_ptr;
const char *val = (char *) av->a_un.a_val;

if (__builtin_expect (auxvars[idx].form, dec) == dec)
val = _itoa ((unsigned long int) av->a_un.a_val,
Expand Down

0 comments on commit 39fb308

Please sign in to comment.