This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Linking with nonstandard malloc
- From: Amittai Aviram <amittai dot aviram at yale dot edu>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 4 Jan 2011 16:14:21 -0500
- Subject: Linking with nonstandard malloc
Suppose I want to use my own malloc.c and malloc.h for malloc and related functions (based on Doug Lea's code), but use the standard C library (glibc) for all other C library functions. Is there a way that I can tell the gcc linker to use my malloc code but glibc for everything else? Thanks!
Amittai Aviram
PhD Student in Computer Science
Yale University
646 483 2639
amittai.aviram@yale.edu
http://www.amittai.com