This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: help with including modified libc functions
- From: Tim Prince <tprince at computer dot org>
- To: verbal <rastageorge at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 15 Sep 2007 13:26:38 -0700
- Subject: Re: help with including modified libc functions
- References: <12691216.post@talk.nabble.com>
verbal wrote:
> i modified some source codes in the libc and now i want to link my program
> with the modified files.
> is there any way to link the file i modified with my program without having
> to change my glibc?
> (basically i want to keep using all the functions in the glibc except of the
> malloc() and free() i have modified...)
This doesn't look like a gcc question; it probably depends on other
parts of your installation. However, at least with static linking, you
should be able to link your own version, followed by allowing the linker
to search glibc.