[PATCH] D139686: [lsan] Add lsan support for loongarch64

Youling Tang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 8 18:08:49 PST 2022


tangyouling created this revision.
tangyouling added reviewers: Sanitizers, vitalybuka, SixWeining, xen0n, xry111, MaskRay, XiaodongLoong, lixing-star.
Herald added subscribers: Enna1, StephenFan, s.egerton, simoncook.
Herald added a project: All.
tangyouling requested review of this revision.
Herald added subscribers: cfe-commits, pcwang-thead.
Herald added projects: clang, Sanitizers.

This patch enabled lsan for loongarch64 with 47-bit VMA layout.

Also don't hardcode the page size in `leak_check_segv.cpp`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D139686

Files:
  clang/lib/Driver/ToolChains/Linux.cpp
  clang/test/Driver/fsanitize.c
  compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake
  compiler-rt/lib/lsan/lsan_common.cpp
  compiler-rt/lib/lsan/lsan_common.h
  compiler-rt/test/asan/TestCases/Linux/leak_check_segv.cpp
  compiler-rt/test/asan/lit.cfg.py
  compiler-rt/test/lsan/TestCases/swapcontext.cpp
  compiler-rt/test/lsan/TestCases/use_registers.cpp
  compiler-rt/test/lsan/lit.common.cfg.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139686.481489.patch
Type: text/x-patch
Size: 8044 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221209/c5704e02/attachment-0001.bin>


More information about the cfe-commits mailing list