From 0a8d7d98d8f65b8880c295941984e9a5c7ec02af Mon Sep 17 00:00:00 2001 From: daan Date: Sun, 30 Oct 2022 19:18:02 -0700 Subject: [PATCH] fix valgrind link --- readme.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 2dfadfb4..bb37df5c 100644 --- a/readme.md +++ b/readme.md @@ -364,7 +364,8 @@ you also need to tell `valgrind` to not intercept those calls itself, and use: ``` By setting the `MIMALLOC_SHOW_STATS` environment variable you can check that mimalloc is indeed -used and not the standard allocator. Even though the option is called `--soname-synonyms`[valgrind-soname], this also +used and not the standard allocator. Even though the [Valgrind option][valgrind-soname] +is called `--soname-synonyms`, this also works when overriding with a static library or object file. Unfortunately, it is not possible to dynamically override mimalloc using `LD_PRELOAD` together with `valgrind`. See also the `test/test-wrong.c` file to test with `valgrind`.