[PATCH] [ASAN/AArch64] Fix kernel_old_Xid_t type

Christophe Lyon christophe.lyon at linaro.org
Tue Feb 10 20:04:36 PST 2015


This also relates to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59009.

If we are not going to include <sys/syscall.h> to get the list of supported syscalls on the current platform, does this mean that I should insert a code fragment to mimic what is suggested in the mentioned bugzilla:
#if target is arm32 || x86-32 || sparc32 || sh || m68k
and libc5 || glibc-2.0 || glibc-2.1 || (glibc-2.2 to 2.15 built against linux-2.2 kernel headers)
#define SOME_PROPERTY
#endif
....
#if SOME_PROPERTY
 PRE_SYSCALL(chown16)(const void *filename, long user, long group) {
...
#endif
and similarly for every *16 syscall in sanitizer_common_syscalls.inc
and sanitizer_platform_limits_posix.cc

but then again, how to check the glibc version in these 2 .inc files?


http://reviews.llvm.org/D6026

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list