-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Closed
Closed
Copy link
Labels
compiler-rt:hwasanHardware-assisted address sanitizerHardware-assisted address sanitizer
Description
llvm-project/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
Lines 1782 to 1786 in 0a68a9d
// Globals with custom sections may be used in __start_/__stop_ enumeration, | |
// which would be broken both by adding tags and potentially by the extra | |
// padding/alignment that we insert. | |
if (GV.hasSection()) | |
continue; |
I'm not really sure what possible scenario this could be referring to, however there should be a way to bypass this check and allow all globals to be instrumented.
I'm using llvm's hwasan instrumentation with a custom runtime for embedded (baremetal) environment, where assigning sections of code/data symbols is heavily used. It is desirable to instrument all globals and work around any issues which arise from that.
Metadata
Metadata
Assignees
Labels
compiler-rt:hwasanHardware-assisted address sanitizerHardware-assisted address sanitizer