Blame SOURCES/compat-libstdc++33++-symver2.patch

6f1b0c
2005-05-13  Jakub Jelinek  <jakub@redhat.com>
6f1b0c
6f1b0c
	* src/globals.cc (_GLIBCPP_ASM_SYMVER): For non-PIC, redefine to a
6f1b0c
	hidden alias.
6f1b0c
	* src/locale.cc (_GLIBCPP_ASM_SYMVER): Likewise.
6f1b0c
6f1b0c
--- libstdc++33-v3/src/globals.cc.jj	2002-10-23 01:24:11.000000000 +0200
6f1b0c
+++ libstdc++33-v3/src/globals.cc	2005-05-13 12:30:26.000000000 +0200
6f1b0c
@@ -33,6 +33,12 @@
6f1b0c
 #include <locale>
6f1b0c
 #include <ext/stdio_filebuf.h>
6f1b0c
 
6f1b0c
+#ifndef PIC
6f1b0c
+# undef _GLIBCPP_ASM_SYMVER
6f1b0c
+# define _GLIBCPP_ASM_SYMVER(cur, old, version) \
6f1b0c
+  asm (".globl " #old "\n\t.hidden " #old "\n\t.set " #old "," #cur);
6f1b0c
+#endif
6f1b0c
+
6f1b0c
 // On AIX, and perhaps other systems, library initialization order is
6f1b0c
 // not guaranteed.  For example, the static initializers for the main
6f1b0c
 // program might run before the static initializers for this library.
6f1b0c
--- libstdc++33-v3/src/locale.cc.jj	2003-01-17 18:44:45.000000000 +0100
6f1b0c
+++ libstdc++33-v3/src/locale.cc	2005-05-13 13:02:36.000000000 +0200
6f1b0c
@@ -34,6 +34,12 @@
6f1b0c
 #include <locale>
6f1b0c
 #include <bits/atomicity.h>
6f1b0c
 
6f1b0c
+#ifndef PIC
6f1b0c
+# undef _GLIBCPP_ASM_SYMVER
6f1b0c
+# define _GLIBCPP_ASM_SYMVER(cur, old, version) \
6f1b0c
+  asm (".globl " #old "\n\t.hidden " #old "\n\t.set " #old "," #cur);
6f1b0c
+#endif
6f1b0c
+
6f1b0c
 namespace __gnu_cxx
6f1b0c
 {
6f1b0c
   // Defined in globals.cc.