1. Tobias Pape
  2. pypy

Commits

Ronny Pfannschmidt  committed 855e1c2

add a symver for memcpy guarded by the define PYPY_FORCE_OLD_GLIBC

  • Participants
  • Parent commits 7afca33
  • Branches link-old-glibc-abi

Comments (0)

Files changed (4)

File pypy/module/cpyext/src/mysnprintf.c

View file
  • Ignore whitespace
    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, ...)
 {

File pypy/module/cpyext/src/structseq.c

View file
  • Ignore whitespace
 #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";

File pypy/translator/c/src/g_prerequisite.h

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

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

View file
  • Ignore whitespace
 #include <stdio.h>
 #endif
 
+#ifdef PYPY_FORCE_OLD_GLIBC
+__asm__(".symver memcpy,memcpy@GLIBC_2.2.5");
+#endif
+
 /************************************************************/
 
 struct stacklet_s {