S390: Get rid of linknamespace failures for utmp functions.

This commit is contained in:
Stefan Liebler 2015-01-16 09:18:58 +01:00 committed by Andreas Krebbel
parent 1d53248326
commit 026eb207ed
9 changed files with 62 additions and 15 deletions

View File

@ -1,3 +1,22 @@
2015-01-16 Stefan Liebler <stli@linux.vnet.ibm.com>
[BZ #17844]
* sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
(getutent): Use weak_alias in non SHARED case
and default_symbol_version in SHARED case.
* sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
(getutent_r, pututline): Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
(getutid): Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
(getutid_r): Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
(getutline): Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
(getutline_r): Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
(updwtmp): Likewise.
2015-01-16 Stefan Liebler <stli@linux.vnet.ibm.com>
[BZ #17848]

2
NEWS
View File

@ -17,7 +17,7 @@ Version 2.21
17630, 17633, 17634, 17635, 17647, 17653, 17657, 17658, 17664, 17665,
17668, 17682, 17717, 17719, 17722, 17723, 17724, 17725, 17732, 17733,
17744, 17745, 17746, 17747, 17748, 17775, 17777, 17780, 17781, 17782,
17791, 17793, 17796, 17797, 17803, 17806, 17834, 17848
17791, 17793, 17796, 17797, 17803, 17806, 17834, 17844, 17848
* Optimized strcpy, stpcpy, strncpy, stpncpy, strcmp, and strncmp
implementations for powerpc64/powerpc64le.

View File

@ -21,8 +21,12 @@
#include "utmp-compat.h"
#undef weak_alias
#define weak_alias(n,a)
#if defined SHARED
# undef weak_alias
# define weak_alias(n,a)
#endif
#include "login/getutent.c"
#if defined SHARED
default_symbol_version (__getutent, getutent, UTMP_COMPAT_BASE);
#endif

View File

@ -23,12 +23,16 @@
#include "utmp-compat.h"
#include "utmp-private.h"
#if defined SHARED
weak_alias (__setutent, setutent)
weak_alias (__endutent, endutent)
#undef weak_alias
#define weak_alias(n,a)
# undef weak_alias
# define weak_alias(n,a)
#endif
#include "login/getutent_r.c"
#if defined SHARED
default_symbol_version (__getutent_r, getutent_r, UTMP_COMPAT_BASE);
default_symbol_version (__pututline, pututline, UTMP_COMPAT_BASE);
#endif

View File

@ -21,8 +21,12 @@
#include "utmp-compat.h"
#undef weak_alias
#define weak_alias(n,a)
#if defined SHARED
# undef weak_alias
# define weak_alias(n,a)
#endif
#include "login/getutid.c"
#if defined SHARED
default_symbol_version (__getutid, getutid, UTMP_COMPAT_BASE);
#endif

View File

@ -24,8 +24,12 @@
#include "utmp-compat.h"
#include "utmp-private.h"
#undef weak_alias
#define weak_alias(n,a)
#if defined SHARED
# undef weak_alias
# define weak_alias(n,a)
#endif
#include "login/getutid_r.c"
#if defined SHARED
default_symbol_version (__getutid_r, getutid_r, UTMP_COMPAT_BASE);
#endif

View File

@ -21,8 +21,12 @@
#include "utmp-compat.h"
#undef weak_alias
#define weak_alias(n,a)
#if defined SHARED
# undef weak_alias
# define weak_alias(n,a)
#endif
#include "login/getutline.c"
#if defined SHARED
default_symbol_version (__getutline, getutline, UTMP_COMPAT_BASE);
#endif

View File

@ -23,8 +23,12 @@
#include "utmp-compat.h"
#include "utmp-private.h"
#undef weak_alias
#define weak_alias(n,a)
#if defined SHARED
# undef weak_alias
# define weak_alias(n,a)
#endif
#include "login/getutline_r.c"
#if defined SHARED
default_symbol_version (__getutline_r, getutline_r, UTMP_COMPAT_BASE);;
#endif

View File

@ -21,8 +21,12 @@
#include "utmp-compat.h"
#include "utmp-private.h"
#undef weak_alias
#define weak_alias(n,a)
#if defined SHARED
# undef weak_alias
# define weak_alias(n,a)
#endif
#include "sysdeps/gnu/updwtmp.c"
#if defined SHARED
default_symbol_version (__updwtmp, updwtmp, UTMP_COMPAT_BASE);
#endif