re PR sanitizer/78532 (libsanitizer fails to build on sparc64-linux-gnu)
PR sanitizer/78532 * sanitizer_common/sanitizer_platform_limits_posix.h (__sanitizer_sigaction): Adjust for sparc targets and various Glibc versions. From-SVN: r243014
This commit is contained in:
parent
8fef5ca9ed
commit
d61ed91ece
@ -1,3 +1,10 @@
|
|||||||
|
2016-11-30 Maxim Ostapenko <m.ostapenko@samsung.com>
|
||||||
|
|
||||||
|
PR sanitizer/78532
|
||||||
|
* sanitizer_common/sanitizer_platform_limits_posix.h
|
||||||
|
(__sanitizer_sigaction): Adjust for sparc targets and various Glibc
|
||||||
|
versions.
|
||||||
|
|
||||||
2016-11-29 Markus Trippelsdorf <markus@trippelsdorf.de>
|
2016-11-29 Markus Trippelsdorf <markus@trippelsdorf.de>
|
||||||
|
|
||||||
* LOCAL_PATCHES: Remove r242480.
|
* LOCAL_PATCHES: Remove r242480.
|
||||||
|
@ -25,6 +25,10 @@
|
|||||||
# define GET_LINK_MAP_BY_DLOPEN_HANDLE(handle) ((link_map*)(handle))
|
# define GET_LINK_MAP_BY_DLOPEN_HANDLE(handle) ((link_map*)(handle))
|
||||||
#endif // !SANITIZER_FREEBSD
|
#endif // !SANITIZER_FREEBSD
|
||||||
|
|
||||||
|
#ifndef __GLIBC_PREREQ
|
||||||
|
#define __GLIBC_PREREQ(x, y) 0
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace __sanitizer {
|
namespace __sanitizer {
|
||||||
extern unsigned struct_utsname_sz;
|
extern unsigned struct_utsname_sz;
|
||||||
extern unsigned struct_stat_sz;
|
extern unsigned struct_stat_sz;
|
||||||
@ -628,7 +632,14 @@ namespace __sanitizer {
|
|||||||
#endif
|
#endif
|
||||||
#ifndef __mips__
|
#ifndef __mips__
|
||||||
#if defined(__sparc__)
|
#if defined(__sparc__)
|
||||||
|
#if __GLIBC_PREREQ (2, 20)
|
||||||
|
// On sparc glibc 2.19 and earlier sa_flags was unsigned long, and
|
||||||
|
// __glibc_reserved0 didn't exist.
|
||||||
|
int __glibc_reserved0;
|
||||||
|
int sa_flags;
|
||||||
|
#else
|
||||||
unsigned long sa_flags;
|
unsigned long sa_flags;
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
int sa_flags;
|
int sa_flags;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user