This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Undefined versioned symbols for SH target.


Thanks a lot, Uli and Andreas.

BTW, I clean up some files in sysdeps/sh/sh4/fpu/ by removing
version-compatibility definitions like as ia64 since SH starts
with 2.2. Here's a patch.


2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>

	* sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
	compatibility.
	* sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
	* sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
	* sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
	* sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.

--
diff -ur /cvs/libc/sysdeps/sh/sh4/fpu/fclrexcpt.c libc/sysdeps/sh/sh4/fpu/fclrexcpt.c
--- /cvs/libc/sysdeps/sh/sh4/fpu/fclrexcpt.c	Tue Jun 13 05:27:35 2000
+++ libc/sysdeps/sh/sh4/fpu/fclrexcpt.c	Wed Jun 14 17:25:38 2000
@@ -22,7 +22,7 @@
 #include <fpu_control.h>
 
 int
-__feclearexcept (int excepts)
+feclearexcept (int excepts)
 {
   int cw;
 
@@ -40,6 +40,3 @@
 
   return 0;
 }
-strong_alias (__feclearexcept, __old_feclearexcept)
-symbol_version (__old_feclearexcept, feclearexcept, GLIBC_2.1);
-default_symbol_version (__feclearexcept, feclearexcept, GLIBC_2.2);
diff -ur /cvs/libc/sysdeps/sh/sh4/fpu/fegetenv.c libc/sysdeps/sh/sh4/fpu/fegetenv.c
--- /cvs/libc/sysdeps/sh/sh4/fpu/fegetenv.c	Tue Jun 13 05:27:48 2000
+++ libc/sysdeps/sh/sh4/fpu/fegetenv.c	Wed Jun 14 17:25:58 2000
@@ -21,7 +21,7 @@
 #include <fpu_control.h>
 
 int
-__fegetenv (fenv_t *envp)
+fegetenv (fenv_t *envp)
 {
   unsigned long int temp;
   _FPU_GETCW (temp);
@@ -29,6 +29,3 @@
 
   return 0;
 }
-strong_alias (__fegetenv, __old_fegetenv)
-symbol_version (__old_fegetenv, fegetenv, GLIBC_2.1);
-default_symbol_version (__fegetenv, fegetenv, GLIBC_2.2);
diff -ur /cvs/libc/sysdeps/sh/sh4/fpu/fesetenv.c libc/sysdeps/sh/sh4/fpu/fesetenv.c
--- /cvs/libc/sysdeps/sh/sh4/fpu/fesetenv.c	Tue Jun 13 05:28:39 2000
+++ libc/sysdeps/sh/sh4/fpu/fesetenv.c	Wed Jun 14 17:27:29 2000
@@ -21,7 +21,7 @@
 #include <fpu_control.h>
 
 int
-__fesetenv (const fenv_t *envp)
+fesetenv (const fenv_t *envp)
 {
   if (envp == FE_DFL_ENV)
       _FPU_SETCW (_FPU_DEFAULT);
@@ -32,6 +32,3 @@
     }
   return 0;
 }
-strong_alias (__fesetenv, __old_fesetenv)
-symbol_version (__old_fesetenv, fesetenv, GLIBC_2.1);
-default_symbol_version (__fesetenv, fesetenv, GLIBC_2.2);
diff -ur /cvs/libc/sysdeps/sh/sh4/fpu/fraiseexcpt.c libc/sysdeps/sh/sh4/fpu/fraiseexcpt.c
--- /cvs/libc/sysdeps/sh/sh4/fpu/fraiseexcpt.c	Tue Jun 13 05:29:50 2000
+++ libc/sysdeps/sh/sh4/fpu/fraiseexcpt.c	Wed Jun 14 17:27:56 2000
@@ -22,7 +22,7 @@
 #include <math.h>
 
 int
-__feraiseexcept (int excepts)
+feraiseexcept (int excepts)
 {
   /* Raise exceptions represented by EXPECTS.  */
   fexcept_t temp;
@@ -33,6 +33,3 @@
 
   return 0;
 }
-strong_alias (__feraiseexcept, __old_feraiseexcept)
-symbol_version (__old_feraiseexcept, feraiseexcept, GLIBC_2.1);
-default_symbol_version (__feraiseexcept, feraiseexcept, GLIBC_2.2);
diff -ur /cvs/libc/sysdeps/sh/sh4/fpu/fsetexcptflg.c libc/sysdeps/sh/sh4/fpu/fsetexcptflg.c
--- /cvs/libc/sysdeps/sh/sh4/fpu/fsetexcptflg.c	Tue Jun 13 05:30:05 2000
+++ libc/sysdeps/sh/sh4/fpu/fsetexcptflg.c	Wed Jun 14 17:28:08 2000
@@ -22,7 +22,7 @@
 #include <fpu_control.h>
 
 int
-__fesetexceptflag (const fexcept_t *flagp, int excepts)
+fesetexceptflag (const fexcept_t *flagp, int excepts)
 {
   fexcept_t temp;
 
@@ -38,6 +38,3 @@
 
   return 0;
 }
-strong_alias (__fesetexceptflag, __old_fesetexceptflag)
-symbol_version (__old_fesetexceptflag, fesetexceptflag, GLIBC_2.1);
-default_symbol_version (__fesetexceptflag, fesetexceptflag, GLIBC_2.2);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]