mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 19:00:07 +00:00
9b874b2f1e
http://sourceware.org/ml/libc-alpha/2013-08/msg00090.html This patch fixes symbol versioning in setjmp/longjmp. The existing code uses raw versions, which results in wrong symbol versioning when you want to build glibc with a base version of 2.19 for LE. Note that the merging the 64-bit and 32-bit versions in novmx-lonjmp.c and pt-longjmp.c doesn't result in GLIBC_2.0 versions for 64-bit, due to the base in shlib_versions. * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros. * sysdeps/powerpc/novmx-longjmp.c: Likewise. * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise. * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise. * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise. * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise. * sysdeps/powerpc/powerpc32/mcount.c: Likewise. * sysdeps/powerpc/powerpc32/setjmp.S: Likewise. * sysdeps/powerpc/powerpc64/setjmp.S: Likewise. * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
18 lines
608 B
C
18 lines
608 B
C
#include <shlib-compat.h>
|
|
|
|
#define __mcount_internal ___mcount_internal
|
|
|
|
#include <gmon/mcount.c>
|
|
|
|
#undef __mcount_internal
|
|
|
|
/* __mcount_internal was added in glibc 2.15 with version GLIBC_PRIVATE,
|
|
but it should have been put in version GLIBC_2.15. Mark the
|
|
GLIBC_PRIVATE version obsolete and add it to GLIBC_2.16 instead. */
|
|
versioned_symbol (libc, ___mcount_internal, __mcount_internal, GLIBC_2_16);
|
|
|
|
#if SHLIB_COMPAT (libc, GLIBC_2_15, GLIBC_2_16)
|
|
strong_alias (___mcount_internal, ___mcount_internal_private);
|
|
symbol_version (___mcount_internal_private, __mcount_internal, GLIBC_PRIVATE);
|
|
#endif
|