From 63c7a7e8a99489497572e0cf81aee5c3bc77d1c2 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 16 May 2003 04:22:23 +0000 Subject: Update. 2003-05-15 Jakub Jelinek * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Remove sym argument, always use refsym. (__process_machine_rela): Adjust callers. * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow): Likewise. * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow): Adjust prototype. * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise. --- sysdeps/generic/dl-sysdep.c | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) (limited to 'sysdeps/generic') diff --git a/sysdeps/generic/dl-sysdep.c b/sysdeps/generic/dl-sysdep.c index a0e6736b22..166f4fadad 100644 --- a/sysdeps/generic/dl-sysdep.c +++ b/sysdeps/generic/dl-sysdep.c @@ -260,23 +260,28 @@ _dl_show_auxv (void) assert (AT_NULL == 0); assert (AT_IGNORE == 1); + + if (av->a_type == AT_HWCAP) + { + /* This is handled special. */ + if (_dl_procinfo (av->a_un.a_val) == 0) + continue; + } + if (idx < sizeof (auxvars) / sizeof (auxvars[0])) { - if (av->a_type != AT_HWCAP || _dl_procinfo (av->a_un.a_val) < 0) - { - const char *val = av->a_un.a_ptr; + const char *val = av->a_un.a_ptr; - if (__builtin_expect (auxvars[idx].form, dec) == dec) - val = _itoa ((unsigned long int) av->a_un.a_val, - buf + sizeof buf - 1, 10, 0); - else if (__builtin_expect (auxvars[idx].form, hex) == hex) - val = _itoa ((unsigned long int) av->a_un.a_val, - buf + sizeof buf - 1, 16, 0); + if (__builtin_expect (auxvars[idx].form, dec) == dec) + val = _itoa ((unsigned long int) av->a_un.a_val, + buf + sizeof buf - 1, 10, 0); + else if (__builtin_expect (auxvars[idx].form, hex) == hex) + val = _itoa ((unsigned long int) av->a_un.a_val, + buf + sizeof buf - 1, 16, 0); - _dl_printf ("%s%s\n", auxvars[idx].label, val); + _dl_printf ("%s%s\n", auxvars[idx].label, val); - continue; - } + continue; } /* Unknown value: print a generic line. */ -- cgit 1.4.1