Mail Archives: djgpp/1996/05/12/03:06:40
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.
- Raw text -