[PATCH 0/5] [asan] Update libsanitizer for x32

H.J. Lu hjl.tools at gmail.com
Tue May 20 11:33:13 PDT 2014


Hi,

libsanitizer is also used by GCC which supports x32.  X32 uses ILP32
data model on Linux/x86-64.  I am submitting 5 patches to update
libsanitizer for x32.


H.J.
---
H.J. Lu (5):
  Use 64-bit pointer to unwind stack for x86-64
  Use 64-bit ints in linux_dirent for Linux/x86-64
  Cast pointers to uptr when calling internal_syscall
  Set thread descriptor size to 1728 for x32
  Avoid shift count overflow in CanBeAHeapPointer

 lib/lsan/lsan_common.cc                         |  2 +-
 lib/sanitizer_common/sanitizer_internal_defs.h  |  7 +++++++
 lib/sanitizer_common/sanitizer_linux.cc         |  9 +++++++--
 lib/sanitizer_common/sanitizer_linux_libcdep.cc |  4 ++++
 lib/sanitizer_common/sanitizer_stacktrace.cc    | 14 +++++++-------
 5 files changed, 26 insertions(+), 10 deletions(-)



More information about the llvm-commits mailing list