Date: Sun, 12 May 1996 09:59:47 +0200 (IST) From: Eli Zaretskii To: Martynas Kunigelis Cc: DJGPP mailing list Subject: Re: ld and libs In-Reply-To: <9605101057.AA22759@is.elta.co.il> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 10 May 1996, Martynas Kunigelis wrote: > I was wandering why putting empty wildcard globbing and environmet file > loading functions to a library and linking with it won't replace the original > ones in the final exec. Eli said this should work. I've got it!!! Eli, the > above functions are called from *within* libc itself, so ld finds them in > libc as well and never looks anywhere else. So simple. This is a simple consequence of the fact that ld is a one-pass linker. To force it to use your versions of these functions, extract crt1.o from libc.a and put it into your library together with the empty functions.