I have two programs, malloc.c and main.c. I have malloc/free functions in malloc.c, and main in main.c.
If I compile malloc.c to a shared object, and main.c to a.out, then I can override the malloc function at runtime by using LD_PRELOAD = libc or libumem, etc. If I compile and link both malloc.c and main.c into a.out, is it possible to override the malloc function at runtime? Is there a ld option to do something like this? Thanks, Ginn -------- Ginn Chen Software Engineer, Browser Team Sun Microsystems, Inc. Phone: x82869 / +86-10-62673869 Fax: +86-10-62780969