[JNPR] Proposal to add weak symbols for malloc, realloc, and free to libc

Steve Kiernan stevek at juniper.net
Thu Jan 17 21:17:28 UTC 2013


When libc was changed to use jemalloc, the weak symbols for malloc, realloc, and free ended up being removed.
This makes it a bit difficult for an application to replace (or augment) the malloc implementation.

This proposal is to add back the weak symbols similar to how they existed in libc prior to jemalloc introduction.

See the following patch for the changes:
http://people.freebsd.org/~marcel/Juniper/weak-malloc.diff

I'm not sure if the the symbols are in the proper place in the Symbol.map file and would welcome comments.

--
Stephen J. Kiernan
Juniper Networks, Inc.
stevek_at_juniper.net


More information about the freebsd-arch mailing list