Ronny Pfannschmidt avatar Ronny Pfannschmidt committed 855e1c2

add a symver for memcpy guarded by the define PYPY_FORCE_OLD_GLIBC

Comments (0)

Files changed (4)

pypy/module/cpyext/src/mysnprintf.c

    CAUTION:  Unlike C99, str != NULL and size > 0 are required.
 */
 
+#ifdef PYPY_FORCE_OLD_GLIBC
+__asm__(".symver memcpy,memcpy@GLIBC_2.2.5");
+#endif
+
+
 int
 PyOS_snprintf(char *str, size_t size, const  char  *format, ...)
 {

pypy/module/cpyext/src/structseq.c

 #include "structmember.h"
 #include "structseq.h"
 
+#ifdef PYPY_FORCE_OLD_GLIBC
+__asm__(".symver memcpy,memcpy@GLIBC_2.2.5");
+#endif
+
 static char visible_length_key[] = "n_sequence_fields";
 static char real_length_key[] = "n_fields";
 static char unnamed_fields_key[] = "n_unnamed_fields";

pypy/translator/c/src/g_prerequisite.h

 typedef unsigned char bool_t;
 #endif
 
+#ifdef PYPY_FORCE_OLD_GLIBC
+__asm__(".symver memcpy,memcpy@GLIBC_2.2.5");
+#endif
 
 #include "src/align.h"

pypy/translator/c/src/stacklet/stacklet.c

 #include <stdio.h>
 #endif
 
+#ifdef PYPY_FORCE_OLD_GLIBC
+__asm__(".symver memcpy,memcpy@GLIBC_2.2.5");
+#endif
+
 /************************************************************/
 
 struct stacklet_s {
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.