aboutsummaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2012-03-01 17:19:20 -0800
committerJason Evans <je@fb.com>2012-03-01 17:19:20 -0800
commit0a5489e37da88a1a50fbf8552e0d3a7f8fd93ffc (patch)
treebc3ee548220bc90b98892c59dd5a5dbe546f465e /INSTALL
parent166a745b395198c2b0d661caa717e6a9400291c6 (diff)
downloadjemalloc-0a5489e37da88a1a50fbf8552e0d3a7f8fd93ffc.tar.gz
Add --with-mangling.
Add the --with-mangling configure option, which can be used to specify name mangling on a per public symbol basis that takes precedence over --with-jemalloc-prefix. Expose the memalign() and valloc() overrides even if --with-jemalloc-prefix is specified. This change does no real harm, and simplifies the code.
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL13
1 files changed, 13 insertions, 0 deletions
diff --git a/INSTALL b/INSTALL
index 4d3e1af..6e32d71 100644
--- a/INSTALL
+++ b/INSTALL
@@ -26,6 +26,19 @@ any of the following arguments (not a definitive list) to 'configure':
Embed one or more library paths, so that libjemalloc can find the libraries
it is linked to. This works only on ELF-based systems.
+--with-mangling=<map>
+ Mangle public symbols specified in <map> which is a comma-separated list of
+ name:mangled pairs.
+
+ For example, to use ld's --wrap option as an alternative method for
+ overriding libc's malloc implementation, specify something like:
+
+ --with-mangling=malloc:__wrap_malloc,free:__wrap_free[...]
+
+ Note that mangling happens prior to application of the prefix specified by
+ --with-jemalloc-prefix, and mangled symbols are then ignored when applying
+ the prefix.
+
--with-jemalloc-prefix=<prefix>
Prefix all public APIs with <prefix>. For example, if <prefix> is
"prefix_", API changes like the following occur: