[all-commits] [llvm/llvm-project] fc006b: [compiler-rt][hwasan] Add GetShadowOffset function

Leonard Chan via All-commits all-commits at lists.llvm.org
Tue Jun 15 10:48:38 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fc006b3e5dc3cb33e3dd55955f05664f187e8240
      https://github.com/llvm/llvm-project/commit/fc006b3e5dc3cb33e3dd55955f05664f187e8240
  Author: Leonard Chan <leonardchan at google.com>
  Date:   2021-06-15 (Tue, 15 Jun 2021)

  Changed paths:
    M compiler-rt/lib/hwasan/hwasan_allocator.h
    M compiler-rt/lib/hwasan/hwasan_mapping.h

  Log Message:
  -----------
  [compiler-rt][hwasan] Add GetShadowOffset function

Similar to SHADOW_OFFSET on asan, we can use this for hwasan so platforms that
use a constant value for the start of shadow memory can just use the constant
rather than access a global.

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




More information about the All-commits mailing list