aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic/dl-sysdep.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-01-31 13:28:12 +0000
committerUlrich Drepper <drepper@redhat.com>1998-01-31 13:28:12 +0000
commitf54de3b555f1458c7200ac45c21038f39669dbac (patch)
treeab1fe6b86e13f774f0762d1c2846fad349df18fb /sysdeps/generic/dl-sysdep.c
parent4d06461a76587c80359f6db5e1c6e4f4641d2663 (diff)
downloadglibc-f54de3b555f1458c7200ac45c21038f39669dbac.tar
glibc-f54de3b555f1458c7200ac45c21038f39669dbac.tar.gz
glibc-f54de3b555f1458c7200ac45c21038f39669dbac.tar.bz2
glibc-f54de3b555f1458c7200ac45c21038f39669dbac.zip
Update.
1998-01-31 21:18 Ulrich Drepper <drepper@cygnus.com> * sysdeps/generic/dl-sysdep.c (_dl_show_aux): Print newline after AT_PLATFORM string. Pretty print AT_BASE info. * sysdeps/generic/dl-sysdep.c: Include <dl-procinfo.h>. (_dl_show_aux): Call _dl_procinfo to print AT_HWCAP info. * sysdeps/generic/dl-procinfo.h: New file. * sysdeps/unix/sysv/linux/dl-procinfo.h: New file.
Diffstat (limited to 'sysdeps/generic/dl-sysdep.c')
-rw-r--r--sysdeps/generic/dl-sysdep.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/sysdeps/generic/dl-sysdep.c b/sysdeps/generic/dl-sysdep.c
index b2ae75cc9e..b007aa6b9d 100644
--- a/sysdeps/generic/dl-sysdep.c
+++ b/sysdeps/generic/dl-sysdep.c
@@ -1,5 +1,5 @@
/* Operating system support for run-time dynamic linker. Generic Unix version.
- Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -28,6 +28,7 @@
#include <stdio-common/_itoa.h>
#include <dl-machine.h>
+#include <dl-procinfo.h>
extern int _dl_argc;
extern char **_dl_argv;
@@ -201,7 +202,7 @@ _dl_show_auxv (void)
"\n", NULL);
break;
case AT_BASE:
- _dl_sysdep_message ("AT_BASE: 0x",
+ _dl_sysdep_message ("AT_BASE: 0x",
_itoa_word (av->a_un.a_val, buf + sizeof buf - 1,
16, 0),
"\n", NULL);
@@ -231,13 +232,14 @@ _dl_show_auxv (void)
"\n", NULL);
break;
case AT_PLATFORM:
- _dl_sysdep_message ("AT_PLATFORM: ", av->a_un.a_ptr, NULL);
+ _dl_sysdep_message ("AT_PLATFORM: ", av->a_un.a_ptr, "\n", NULL);
break;
case AT_HWCAP:
- _dl_sysdep_message ("AT_HWCAP: ",
- _itoa_word (av->a_un.a_val, buf + sizeof buf - 1,
- 16, 0),
- "\n", NULL);
+ if (_dl_procinfo (av->a_un.a_val) < 0)
+ _dl_sysdep_message ("AT_HWCAP: ",
+ _itoa_word (av->a_un.a_val, buf + sizeof buf - 1,
+ 16, 0),
+ "\n", NULL);
break;
}
}