-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch fix the static build for strftime, which uses __wcschr. Current powerpc32 implementation defines the __wcschr be an alias to __wcschr_ppc32 and current implementation misses the correct alias for static build. It also changes the default wcschr.c logic so a IFUNC implementation should just define WCSCHR and undefine the required alias/internal definitions.
- Loading branch information
Adhemerval Zanella
authored and
Adhemerval Zanella
committed
Apr 15, 2015
1 parent
a8b6a3a
commit fb78612
Showing
4 changed files
with
37 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
#include <wchar.h> | ||
|
||
#if IS_IN (libc) | ||
# undef libc_hidden_weak | ||
# define libc_hidden_weak(name) | ||
|
||
# undef weak_alias | ||
# define weak_alias(name,alias) | ||
|
||
# ifdef SHARED | ||
# undef libc_hidden_def | ||
# define libc_hidden_def(name) \ | ||
__hidden_ver1 (__wcschr_ia32, __GI_wcschr, __wcschr_ia32); \ | ||
strong_alias (__wcschr_ia32, __wcschr_ia32_1); \ | ||
__hidden_ver1 (__wcschr_ia32_1, __GI___wcschr, __wcschr_ia32_1); | ||
# endif | ||
# define WCSCHR __wcschr_ia32 | ||
#endif | ||
|
||
extern __typeof (wcschr) __wcschr_ia32; | ||
|
||
#include "wcsmbs/wcschr.c" | ||
#define WCSCHR __wcschr_ia32 | ||
#include <wcsmbs/wcschr.c> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters