[PATCH] D136078: Use-after-return sanitizer binary metadata

Marco Elver via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 4 00:36:34 PST 2022


melver added a comment.

In D136078#3969061 <https://reviews.llvm.org/D136078#3969061>, @MaskRay wrote:

> ` SanitizerBinaryMetadata::createZeroSizedObjectInSection` creates `__dummy_*`, but why is it needed? (There is no comment.)

"   // Create a 0-sized object in a section, so that the section is not discarded

  // if all inputs have been discarded."

We need the __begin and __end markers even if there ends up being no binary metadata.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136078/new/

https://reviews.llvm.org/D136078



More information about the llvm-commits mailing list