[all-commits] [llvm/llvm-project] 314c04: [compiler-rt][hwasan] Decouple use of the TLS glob...
Leonard Chan via All-commits
all-commits at lists.llvm.org
Wed Jun 9 12:55:53 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 314c049142ed22154fbe37de3a566ef38b884fab
https://github.com/llvm/llvm-project/commit/314c049142ed22154fbe37de3a566ef38b884fab
Author: Leonard Chan <leonardchan at google.com>
Date: 2021-06-09 (Wed, 09 Jun 2021)
Changed paths:
M llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
M llvm/test/Instrumentation/HWAddressSanitizer/prologue.ll
Log Message:
-----------
[compiler-rt][hwasan] Decouple use of the TLS global for getting the shadow base and using the frame record feature
This allows for using the frame record feature (which uses __hwasan_tls)
independently from however the user wants to access the shadow base, which
prior was only usable if shadow wasn't accessed through the TLS variable or ifuncs.
Frame recording can be explicitly set according to ShadowMapping::WithFrameRecord
in ShadowMapping::init. Currently, it is only enabled on Fuchsia and if TLS is
used, so this should mimic the old behavior.
Added an extra case to prologue.ll that covers this new case.
Differential Revision: https://reviews.llvm.org/D103841
More information about the All-commits
mailing list