c4b21f6aeb45e5a0e3f8052117cae846ebbdae5e — Jakob Kaivo 2 years ago 83e70e1 mapalloc
document how to use the wrapper
1 files changed, 11 insertions(+), 0 deletions(-)

M README.md => README.md +11 -0
@@ 56,3 56,14 @@ provide macros:
Link your program with `-lmapalloc` (you may also need to specify
`-L` with the path to where `libmapalloc.a` is if you don't copy it to part
of your linker's default search path).

The dynamic library `libwrapalloc.so` is also built by default. This can
be used to wrap the standard libc functions `malloc()`, `calloc()`, `realloc()`,
and `free()` to their MapAlloc equivalents if your dynamic linker supports
this. For example, on Linux systems with the GNU linker:

LD_PRELOAD=libwrapalloc.so command args...