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

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