[all-commits] [llvm/llvm-project] b22689: [sanitizer] Correct GetTls for x32

hjl-tools via All-commits all-commits at lists.llvm.org
Thu May 5 13:56:08 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b226894d475b4758ed1da0c23e664b027c89634b
  Author: H.J. Lu <hjl.tools at gmail.com>
  Date:   2022-05-05 (Thu, 05 May 2022)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp

  Log Message:
  [sanitizer] Correct GetTls for x32

Since x32 pointer size is 4 bytes, the self pointer offset in TCB:

  void *tcb;
  dtv_t *dtv;
  void *self;

should be 8, not 16.

Fixes https://github.com/llvm/llvm-project/issues/55288

Differential Revision: https://reviews.llvm.org/D125025

More information about the All-commits mailing list