Issue 142442
Summary hwasan: globals which have been assigned a section cannot be instrumented
Labels new issue
Assignees
Reporter shuffle2
    https://github.com/llvm/llvm-project/blob/0a68a9d6c5f37f63a821948a43315ba4dcd69acc/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp#L1782

```
// 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.
```

I'm not really sure what possible scenario this could be relating 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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to