UNPKG

861 Btext/x-cView Raw
1// http://web.archive.org/web/20140401031018/http://rjpower9000.wordpress.com:80/2012/04/09/fun-with-shared-libraries-version-glibc_2-14-not-found/
2
3#if defined(__linux__)
4
5#define _GNU_SOURCE
6#include <features.h>
7#undef _GNU_SOURCE
8
9#if defined(__USE_GNU)
10
11#if defined(__x86_64__)
12__asm__(".symver memcpy,memcpy@GLIBC_2.2.5");
13__asm__(".symver exp,exp@GLIBC_2.2.5");
14__asm__(".symver log,log@GLIBC_2.2.5");
15__asm__(".symver log2,log2@GLIBC_2.2.5");
16__asm__(".symver pow,pow@GLIBC_2.2.5");
17__asm__(".symver fcntl64,fcntl@GLIBC_2.2.5");
18#endif
19
20#if defined(__aarch64__) || defined(_M_ARM64)
21__asm__(".symver memcpy,memcpy@GLIBC_2.17");
22__asm__(".symver exp,exp@GLIBC_2.17");
23__asm__(".symver log,log@GLIBC_2.17");
24__asm__(".symver log2,log2@GLIBC_2.17");
25__asm__(".symver pow,pow@GLIBC_2.17");
26__asm__(".symver fcntl64,fcntl@GLIBC_2.17");
27#endif
28
29#endif
30#endif