[all-commits] [llvm/llvm-project] 70986e: [sanitizer][aarch64] Add cast to drop reliance on ...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sat Nov 6 23:26:18 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 70986ea3d6aeacb5d10bfe3b75757611d4e7a379
      https://github.com/llvm/llvm-project/commit/70986ea3d6aeacb5d10bfe3b75757611d4e7a379
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-11-06 (Sat, 06 Nov 2021)

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

  Log Message:
  -----------
  [sanitizer][aarch64] Add cast to drop reliance on the type of uc_mcontext.__reserved

https://sourceware.org/bugzilla/show_bug.cgi?id=22742
uc_mcontext.__reserved probably should not be considered user visible API but
unfortunate it is: it is the only way to access cpu states of some Linux
asm/sigcontext.h extensions. That said, the declaration may be
long double __reserved[256]; (used by musl)
instead of
unsigned char __reserved[4096] __attribute__((__aligned__(16))); (glibc)
to avoid dependency on a GNU variable attribute.




More information about the All-commits mailing list