aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-09-20 09:48:01 +0000
committerUlrich Drepper <drepper@redhat.com>1998-09-20 09:48:01 +0000
commita0780919b48b7b966822f3513edd6cf131ad3d8d (patch)
tree4fbadfbb73b113800da2fd1b21ac45ce1fe41862 /sysdeps/generic
parentc53a89d434f518f99d5168e9c8693ac63777042a (diff)
downloadglibc-a0780919b48b7b966822f3513edd6cf131ad3d8d.tar
glibc-a0780919b48b7b966822f3513edd6cf131ad3d8d.tar.gz
glibc-a0780919b48b7b966822f3513edd6cf131ad3d8d.tar.bz2
glibc-a0780919b48b7b966822f3513edd6cf131ad3d8d.zip
Update.
1998-09-20 09:37 Ulrich Drepper <drepper@cygnus.com> * elf/Versions [GLIBC_2.1] (libc): Add __fpu_control. * elf/elf.h: Add AT_FPUCW. * elf/Makefile (dl-routines): Add fpu_control. (elide-routines.os): Add fpu_control. (rtld-routines): Add fpu_control. * math/Makefile (aux): Remove fpu_control. * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle AT_FPUCW. (_dl_show_auxv): Likewise. * sysdeps/unix/sysv/linux/init-first.c (init): Use __setfpucw only if different from OS default. * stdio-common/tstscanf.c: Add test case for (nil).
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/dl-sysdep.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdeps/generic/dl-sysdep.c b/sysdeps/generic/dl-sysdep.c
index 15f85550fe..120f362e75 100644
--- a/sysdeps/generic/dl-sysdep.c
+++ b/sysdeps/generic/dl-sysdep.c
@@ -28,6 +28,7 @@
#include <sys/mman.h>
#include <elf/ldsodefs.h>
#include <stdio-common/_itoa.h>
+#include <fpu_control.h>
#include <entry.h>
#include <dl-machine.h>
@@ -126,6 +127,9 @@ _dl_sysdep_start (void **start_argptr,
case AT_HWCAP:
_dl_hwcap = av->a_un.a_val;
break;
+ case AT_FPUCW:
+ __fpu_control = av->a_un.a_val;
+ break;
}
/* Linux doesn't provide us with any of these values on the stack
@@ -249,6 +253,12 @@ _dl_show_auxv (void)
16, 0),
"\n", NULL);
break;
+ case AT_FPUCW:
+ _dl_sysdep_message ("AT_FPUCW: ",
+ _itoa_word (av->a_un.a_val, buf + sizeof buf - 1,
+ 10, 0),
+ "\n", NULL);
+ break;
}
}