2010-09-29  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
            Andrew Stubbs  <ams@codesourcery.com>

        Resolve SH's __fpscr_values to symbol in libc.so.

        * sysdeps/sh/sh4/fpu/fpu_control.h: Add C++ __set_fpscr prototype.
        * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.2): Add __fpscr_values.
        * sysdeps/unix/sysv/linux/sh/sysdep.S (___fpscr_values): New constant.

Upstream-Status: Pending

Index: git/sysdeps/unix/sysv/linux/sh/sysdep.S
===================================================================
--- git.orig/sysdeps/unix/sysv/linux/sh/sysdep.S	2014-08-27 18:49:24.036070587 +0000
+++ git/sysdeps/unix/sysv/linux/sh/sysdep.S	2014-08-27 18:49:27.332070587 +0000
@@ -30,3 +30,14 @@
 
 #define __syscall_error __syscall_error_1
 #include <sysdeps/unix/sh/sysdep.S>
+
+       .data
+       .align 3
+       .globl ___fpscr_values
+       .type ___fpscr_values, @object
+       .size ___fpscr_values, 8
+___fpscr_values:
+       .long 0
+       .long 0x80000
+weak_alias (___fpscr_values, __fpscr_values)
+
Index: git/sysdeps/unix/sysv/linux/sh/Versions
===================================================================
--- git.orig/sysdeps/unix/sysv/linux/sh/Versions	2014-08-27 18:49:24.028070587 +0000
+++ git/sysdeps/unix/sysv/linux/sh/Versions	2014-08-27 18:49:27.332070587 +0000
@@ -2,6 +2,7 @@
   GLIBC_2.2 {
     # functions used in other libraries
     __xstat64; __fxstat64; __lxstat64;
+    __fpscr_values;
 
     # a*
     alphasort64;
